wudsn-ide/com.wudsn.site.update/site.ant

74 lines
2.4 KiB
Plaintext
Raw Normal View History

2018-12-30 21:01:35 +00:00
<project name="Site" basedir=".">
<!-- - - - - - - - - - - - - - - - - -
target: name
- - - - - - - - - - - - - - - - - -->
<target name="_clean_folder">
<echo message="Cleaning ${folder}" />
<delete dir="${folder}/features" />
<delete dir="${folder}/plugins" />
<delete file="${folder}/artifacts.jar" />
<delete file="${folder}/content.jar" />
</target>
<target name="_copy_folder">
<antcall target="_clean_folder">
<param name="folder" value="${target}" />
</antcall>
<echo message="Copying ${source} to ${target}" />
<copy todir="${target}" preservelastmodified="true">
<fileset file="${source}/artifacts.jar" />
<fileset file="${source}/content.jar" />
<fileset file="${source}/site.xml" />
</copy>
<copy todir="${target}/features" preservelastmodified="true">
<fileset file="${source}/features/**" />
</copy>
<copy todir="${target}/plugins" preservelastmodified="true">
<fileset file="${source}/plugins/**" />
</copy>
</target>
2019-08-31 13:02:35 +00:00
<!-- This refreshes bundle versions in the source projects-->
<target name="check_bundle_versions" >
<exec dir="." executable="cmd.exe">
<arg line="/c check-bundle-versions"/>
</exec>
</target>
<!-- This refreshes the daily build for testing -->
<target name="build_daily" >
2018-12-30 21:01:35 +00:00
<antcall target="_clean_folder">
<param name="folder" value="daily" />
</antcall>
<copy tofile="daily\site.xml" preservelastmodified="true" overwrite="true">
<fileset file="daily/site-template.xml" />
</copy>
<echo>Open daily/site.xml and press "Build All".</echo>
</target>
2019-08-31 13:02:35 +00:00
<!-- This publishes the daily build when testing was successful -->
2018-12-30 21:01:35 +00:00
<target name="publish_daily_to_stable_and_main">
<echo>Copying daily to stable and main.</echo>
<antcall target="_copy_folder">
<param name="source" value="daily" />
2019-08-31 13:02:35 +00:00
<param name="target" value="1.7.1" />
2018-12-30 21:01:35 +00:00
</antcall>
<antcall target="_copy_folder">
<param name="source" value="daily" />
<param name="target" value="." />
</antcall>
<antcall target="upload_all" />
<echo>Done.</echo>
</target>
<target name="upload_all">
2019-01-01 20:06:34 +00:00
<echo>Uploading builds from ${basedir}.</echo>
2018-12-30 21:01:35 +00:00
<exec executable="C:\jac\system\Windows\Tools\NET\WinSCP\WinSCP.com">
<arg value="/script=site.scp"/>
</exec>
<echo>Upload completed.</echo>
</target>
</project>