ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r950082 - in /ant/sandbox/usertests/env: build.xml src/script/ src/script/antRun src/script/antRun.bat src/script/antRun.pl
Date Tue, 01 Jun 2010 14:18:04 GMT
Author: bodewig
Date: Tue Jun  1 14:18:04 2010
New Revision: 950082

URL: http://svn.apache.org/viewvc?rev=950082&view=rev
Log:
create a ZIP that also contains the platform specific launcher scripts

Added:
    ant/sandbox/usertests/env/src/script/
    ant/sandbox/usertests/env/src/script/antRun
      - copied unchanged from r949756, ant/core/trunk/src/script/antRun
    ant/sandbox/usertests/env/src/script/antRun.bat
      - copied unchanged from r949756, ant/core/trunk/src/script/antRun.bat
    ant/sandbox/usertests/env/src/script/antRun.pl
      - copied unchanged from r949756, ant/core/trunk/src/script/antRun.pl
Modified:
    ant/sandbox/usertests/env/build.xml

Modified: ant/sandbox/usertests/env/build.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/usertests/env/build.xml?rev=950082&r1=950081&r2=950082&view=diff
==============================================================================
--- ant/sandbox/usertests/env/build.xml (original)
+++ ant/sandbox/usertests/env/build.xml Tue Jun  1 14:18:04 2010
@@ -15,11 +15,12 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<project default="compile" name="usertests.env">
+<project default="zip" name="usertests.env">
 
   <property file="build.properties"/>
   <property name="javac.-source" value="5"/>
   <property name="javac.-target" value="5"/>
+  <property name="artifact.stub" value="ant-env"/>
   <import file="../common/build.xml"/>
 
   <!-- override to add main class -->
@@ -37,4 +38,16 @@
     </jar>
   </target>
 
+  <target name="zip" depends="antlib">
+    <zip destfile="build.lib/${artifact.stub}.zip">
+      <zipfileset file="${jarname}" fullpath="${artifact.stub}.jar"/>
+      <zipfileset prefix="bin" dir="src/script">
+        <include name="*.bat"/>
+      </zipfileset>
+      <zipfileset prefix="bin" dir="src/script" filemode="755">
+        <exclude name="*.bat"/>
+      </zipfileset>
+    </zip>
+  </target>
+
 </project>



Mime
View raw message