Created
September 12, 2011 17:59
-
-
Save blowery/1211931 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <project> | |
| <!-- this build is meant to be invoked by maven --> | |
| <target name="uptodate" unless="dojo.skipbuild"> | |
| <uptodate property="dojo.skipbuild" | |
| targetFile="${dojo.build.release.location}/${dojo.build.release.name}/dojo/dojo.js"> | |
| <srcfiles dir="${js.source}"> | |
| <include name="**/*.js" /> | |
| <include name="**/*.html" /> | |
| <include name="**/*.css" /> | |
| <include name="**/*.gif" /> | |
| <include name="**/*.png" /> | |
| <include name="**/*.jpg" /> | |
| </srcfiles> | |
| </uptodate> | |
| </target> | |
| <target name="build" depends="uptodate" unless="dojo.skipbuild"> | |
| <exec executable="${java.home}/bin/java" | |
| dir="util/buildscripts" | |
| failonerror="true"> | |
| <arg line="-classpath" /> | |
| <arg line="../shrinksafe/js.jar:../shrinksafe/shrinksafe.jar" /> | |
| <arg line="org.mozilla.javascript.tools.shell.Main" /> | |
| <arg line="build.js" /> | |
| <arg line="profileFile=${dojo.build.profileFile}" /> | |
| <arg line="action=${dojo.build.action}" /> | |
| <!--arg line="version=${dojo.build.version}" /--> | |
| <arg line="releaseName=${dojo.build.release.name}" /> | |
| <arg line="releaseDir=${dojo.build.release.location}/"/> | |
| <!--arg line="optimize=${dojo.build.optimize}"/> | |
| <arg line="layerOptimize=${dojo.build.layerOptimize}"/ --> | |
| <arg line="internStrings=${dojo.build.internStrings}"/> | |
| </exec> | |
| </target> | |
| </project> |
This file contains hidden or 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
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>1.4</version> | |
| <executions> | |
| <execution> | |
| <id>dojo-custom-build</id> | |
| <phase>prepare-package</phase> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| <configuration> | |
| <tasks unless="dojo.skipbuild"> | |
| <ant antfile="${js.source}/build.xml" target="build" dir="${js.source}" /> | |
| </tasks> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment