This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
forked from OpenNTF/SocialSDK
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for automatically moving the cdnjs files when a release…
… is not -SNAPSHOT
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<project default="manage-cdnjs"> | ||
<target name="snapshotstatus"> | ||
<condition property="notSnapshot" value="false" else="true"> | ||
<matches string="${project.version}" pattern="SNAPSHOT$" /> | ||
</condition> | ||
<echo message="This is version - ${project.version}"/> | ||
<echo message="The not snapshot status is - ${notSnapshot}" /> | ||
</target> | ||
|
||
<target name="manage-cdnjs" if="${notSnapshot}" depends="snapshotstatus"> | ||
<copy file="./sdk/com.ibm.sbt.web/src/main/webapp/js/sdk/_layers/sbt-core-dojo-amd.js.uncompressed.js" todir="./assembly/cdnjs" overwrite="true"/> | ||
<copy file="./sdk/com.ibm.sbt.web/src/main/webapp/js/sdk/_layers/sbt-core-dojo-amd.js" todir="./assembly/cdnjs" overwrite="true"/> | ||
<copy file="./sdk/com.ibm.sbt.web/src/main/webapp/js/sdk/_layers/sbt-extra-controls-dojo-amd.js.uncompressed.js" todir="./assembly/cdnjs" overwrite="true"/> | ||
<copy file="./sdk/com.ibm.sbt.web/src/main/webapp/js/sdk/_layers/sbt-extra-controls-dojo-amd.js" todir="./assembly/cdnjs" overwrite="true"/> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters