Skip to content

Commit

Permalink
Cleaning up the Ant build file a bit. Removed some commented-out cruf…
Browse files Browse the repository at this point in the history
…t and unused targets.
  • Loading branch information
Larry Karnowski committed May 15, 2009
1 parent c858d3a commit cc93fab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -63,5 +63,5 @@ Testing jQuery Compatibility:
* run ./bin/test-jquery.sh 1.3.2
* run ./bin/test-jquery.sh 1.3.1
* run ./bin/test-jquery.sh 1.2.6
* Checks out the given jQuery tag from Subversion into test/vendor/jQuery/[version], moves dist/env.rhino.js into
the correct location in their tree, and runs the test suites.
* Checks out the given jQuery tag from Subversion into test/vendor/jQuery/[version],
moves dist/env.rhino.js into the correct location in their tree, and runs the test suites.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -4,5 +4,5 @@ task :default => [:test]

task :test do
classpath = [File.join(".", "rhino", "ant.jar"), File.join(".", "rhino", "ant-launcher.jar")].join(File::PATH_SEPARATOR)
exec "java -cp #{classpath} org.apache.tools.ant.Main -emacs test"
exec "java -cp #{classpath} org.apache.tools.ant.Main -emacs all"
end
18 changes: 2 additions & 16 deletions build.xml
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="Env" default="default" basedir=".">
<project name="Env" default="all" basedir=".">
<description>Builds, tests, and runs the project Env.</description>
<property name="BUILD_MAJOR" value="0" />
<property name="BUILD_MINOR" value="9" />
Expand Down Expand Up @@ -42,18 +39,7 @@
location="${DIST_DIR}/env.rhino.js"/>

<!-- BUILD TARGETS -->
<target name="default" depends="lint"/>

<target name="all" depends="default"/>

<target name="lint" depends="concat">
<!--java jar="${JSLINT_JAR}" classpath="${RHINO_JAR}" fork="true">
<arg value="${ENV_DIST}" />
</java>
<java jar="${JSLINT_JAR}" classpath="${RHINO_JAR}" fork="true">
<arg value="${ENV_RHINO}" />
</java-->
</target>
<target name="all" depends="concat,test"/>

<target name="concat" description="Main ENV build">
<mkdir dir="${DIST_DIR}" />
Expand Down

0 comments on commit cc93fab

Please sign in to comment.