Skip to content

Commit 7380c83

Browse files
committed
[Java.Interop] Fix BuildJniEnvironment_g_cs target outputs.
Commit fbc70cd changed where `jni.c` was generated, but: 1. Didn't update the //Target/@outputs for `jni.c` 2. Didn't create $(IntermediateOutputPath). (2) resulted in a build failure on Jenkins: System.IO.DirectoryNotFoundException: Could not find a part of the path ".../java-interop/src/Java.Interop/obj/Debug//jni.c" Fix the BuildJniEnvironment_g_cs target.
1 parent ec37a4a commit 7380c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Java.Interop/Java.Interop.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@
151151
<PropertyGroup>
152152
<Runtime Condition="'$(OS)' != 'Windows_NT'">mono</Runtime>
153153
</PropertyGroup>
154-
<Target Name="BuildJniEnvironment_g_cs" Inputs="$(JNIEnvGenPath)\jnienv-gen.exe" Outputs="Java.Interop\JniEnvironment.g.cs;$(OutputPath)\jni.c">
155-
<MakeDir Directories="$(OutputPath)" />
154+
<Target Name="BuildJniEnvironment_g_cs" Inputs="$(JNIEnvGenPath)\jnienv-gen.exe" Outputs="Java.Interop\JniEnvironment.g.cs;$(IntermediateOutputPath)\jni.c">
155+
<MakeDir Directories="$(IntermediateOutputPath)" />
156156
<Exec Command="$(Runtime) &quot;$(JNIEnvGenPath)\jnienv-gen.exe&quot; Java.Interop\JniEnvironment.g.cs $(IntermediateOutputPath)\jni.c" />
157157
</Target>
158158
<ItemGroup>

0 commit comments

Comments
 (0)