forked from forcedotcom/SalesforceMobileSDK-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_npm.xml
29 lines (25 loc) · 1.13 KB
/
build_npm.xml
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
<project name="SalesforceMobileSDK-Android-Package" basedir="." default="makeNpm">
<target name="makeNpm">
<!-- Create the temporary working folder. -->
<tempfile property="packageTempDir" destdir="/tmp" prefix="sdkNpmBuild" />
<mkdir dir="${packageTempDir}" />
<!-- Make the npm package -->
<echo>--- Creating the npm package ---</echo>
<exec executable="npm" dir="${packageTempDir}" failonerror="true" logError="true">
<arg value="pack" />
<arg file="${basedir}" />
</exec>
<!-- Move the package to the root folder. -->
<move todir="${basedir}" overwrite="true">
<fileset dir="${packageTempDir}">
<include name="forcedroid*" />
</fileset>
</move>
<delete dir="${packageTempDir}" />
<!-- Reset the repo (post-publish) -->
<echo>--- Reverting the symbolic links ---</echo>
<exec executable="node" failonerror="true" logError="true">
<arg file="external/shared/node/postpublish.js" />
</exec>
</target>
</project>