-
Notifications
You must be signed in to change notification settings - Fork 567
Expand file tree
/
Copy pathmanifestmerger.targets
More file actions
36 lines (33 loc) · 1.33 KB
/
manifestmerger.targets
File metadata and controls
36 lines (33 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_Destination>$(MicrosoftAndroidSdkOutDir)manifestmerger.jar</_Destination>
</PropertyGroup>
<Target Name="_BuildManifestMerger"
BeforeTargets="Build"
Inputs="$(MSBuildThisFile);build.gradle"
Outputs="$(_Destination)">
<Exec
Command=""$(GradleWPath)" build $(GradleArgs) -PjavaSourceVer=$(JavacSourceVersion) -PjavaTargetVer=$(JavacTargetVersion)"
EnvironmentVariables="JAVA_HOME=$(Java8SdkDirectory);APP_HOME=$(GradleHome)"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
<Exec
Command=""$(GradleWPath)" jar $(GradleArgs)"
EnvironmentVariables="JAVA_HOME=$(Java8SdkDirectory);APP_HOME=$(GradleHome)"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
<Copy
SourceFiles="build\libs\manifestmerger.jar"
DestinationFiles="$(_Destination)"
/>
<Touch Files="$(_Destination)" />
</Target>
<Target Name="_CleanManifestMerger" BeforeTargets="Clean">
<Delete Files="$(_Destination)" />
<Exec
Command=""$(GradleWPath)" clean $(GradleArgs)"
EnvironmentVariables="JAVA_HOME=$(Java8SdkDirectory);APP_HOME=$(GradleHome)"
WorkingDirectory="$(MSBuildThisFileDirectory)"
/>
</Target>
</Project>