Skip to content

Commit

Permalink
Don't filter while copying binary files. Echo ant and JVM version on …
Browse files Browse the repository at this point in the history
…startup.
  • Loading branch information
msgilligan committed Apr 28, 2012
1 parent 984bac0 commit 0602ab5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions build.xml
Expand Up @@ -73,6 +73,10 @@
classpathref="ant-googlecode.path" /> classpathref="ant-googlecode.path" />


<!-- Ant targets, use "ant -p" for easier reading of the "description" attributes --> <!-- Ant targets, use "ant -p" for easier reading of the "description" attributes -->
<target name="setup">
<echo message="Building iUI with ${ant.version} on JVM version ${ant.java.version}..." />
</target>

<target name="compress-js" depends="docopy" description="* - Create iuix.js by compressing iui.js"> <target name="compress-js" depends="docopy" description="* - Create iuix.js by compressing iui.js">
<mkdir dir="${release.dir}" /> <mkdir dir="${release.dir}" />
<compress-js file="${src.dir.iui}/iui.js" <compress-js file="${src.dir.iui}/iui.js"
Expand All @@ -93,23 +97,25 @@
<!-- TODO: Compress/Concat themes & extensions --> <!-- TODO: Compress/Concat themes & extensions -->
</target> </target>


<target name="docopy" description="* - Copy Files to release directory"> <target name="docopy" depends="setup" description="* - Copy Files to release directory">
<mkdir dir="${release.dir.webapp}/iui"/> <mkdir dir="${release.dir.webapp}/iui"/>
<!-- Copy subset of files of project root to release root --> <!-- Copy subset of files of project root to release root -->
<copy todir="${release.dir}"> <copy todir="${release.dir}">
<fileset dir="${basedir}"> <fileset dir="${basedir}">
<include name="*.txt"/> <include name="*.txt"/>
</fileset> </fileset>
</copy> </copy>
<!-- Copy iUI images, css, and js --> <!-- Copy iUI *.js and *.css, using a filter to replace @VERSION@ with the value of iui.version -->
<copy todir="${release.dir.webapp}"> <copy todir="${release.dir.webapp}">
<fileset dir="${src.dir.webapp}"> <fileset dir="${src.dir.webapp}" includes="**/*.js, **/*.css" />
<exclude name="**/*.jar"/>
</fileset>
<filterset> <filterset>
<filter token="VERSION" value="${iui.version}"/> <filter token="VERSION" value="${iui.version}"/>
</filterset> </filterset>
</copy> </copy>
<!-- Copy everything else (except .jar files) without filtering -->
<copy todir="${release.dir.webapp}">
<fileset dir="${src.dir.webapp}" excludes="**/*.js, **/*.css, **/*.jar" />
</copy>
<!-- Make second copy of sample.html in samplex.html that uses iuix.css and iuix.js --> <!-- Make second copy of sample.html in samplex.html that uses iuix.css and iuix.js -->
<!-- Disable for now... <!-- Disable for now...
<copy todir="${release.dir}/samples"> <copy todir="${release.dir}/samples">
Expand All @@ -130,7 +136,7 @@
<target name="releasedir" depends="compress-js, compress-css" description="* - Build releasedir (all tasks)"> <target name="releasedir" depends="compress-js, compress-css" description="* - Build releasedir (all tasks)">
</target> </target>


<target name="iui-clean" description="* - Remove all generated files"> <target name="iui-clean" depends="setup" description="* - Remove all generated files">
<echo message="Deleting ${target.dir}" /> <echo message="Deleting ${target.dir}" />
<delete dir="${target.dir}" /> <delete dir="${target.dir}" />
</target> </target>
Expand Down

0 comments on commit 0602ab5

Please sign in to comment.