Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

core: replaced version.js build script in ant build; wasn't used in m…

…ake anymore anyway
  • Loading branch information...
commit 2f536b3d4d6864994cc88ea72638e06609bc12d1 1 parent f3e5e9a
@jzaefferer jzaefferer authored
Showing with 2 additions and 8 deletions.
  1. +2 −4 build.xml
  2. +0 −4 build/build/version.js
View
6 build.xml
@@ -28,6 +28,7 @@
<property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" />
<property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
<property name="JQ_PACK" value="${DIST_DIR}/jquery.pack.js" />
+ <loadfile property="version" srcfile="version.txt" />
<!-- MAIN -->
@@ -47,10 +48,7 @@
<fileset dir="${SRC_DIR}" includes="dimensions.js" />
<fileset dir="${SRC_DIR}" includes="outro.js" />
</concat>
- <java jar="${JAR}" fork="true">
- <arg value="${BUILD_DIR}/build/version.js" />
- <arg value="${JQ}" />
- </java>
+ <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
<echo message="${JQ} built." />
</target>
View
4 build/build/version.js
@@ -1,4 +0,0 @@
-load("build/js/writeFile.js");
-
-var file = arguments[0];
-writeFile(file, readFile(file).replace(new RegExp("@VERSION", "g"), readFile("version.txt").replace( /^\s+|\s+$/g, "" )));
Please sign in to comment.
Something went wrong with that request. Please try again.