logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject svn commit: r369425 - /logging/chainsaw/trunk/build.xml
Date Mon, 16 Jan 2006 10:20:35 GMT
Author: psmith
Date: Mon Jan 16 02:20:31 2006
New Revision: 369425

URL: http://svn.apache.org/viewcvs?rev=369425&view=rev
Log:
Added a 'distribution' target, which creates all distributions,
bundles them together and then SCP's them to a set location,
ready for unpacking.

This just automates quite a bit of stuff that I do often when creating
the distribution, often time consuming and error prone, exactly what
ant is good for.

I'll add the OSX distribution to this set next.

Modified:
    logging/chainsaw/trunk/build.xml

Modified: logging/chainsaw/trunk/build.xml
URL: http://svn.apache.org/viewcvs/logging/chainsaw/trunk/build.xml?rev=369425&r1=369424&r2=369425&view=diff
==============================================================================
--- logging/chainsaw/trunk/build.xml (original)
+++ logging/chainsaw/trunk/build.xml Mon Jan 16 02:20:31 2006
@@ -285,7 +285,7 @@
      	<fileset dir="lib" />
      	<fileset dir=".">
      		<include name="log4j-chain*.jar"/>
-     		<include name="webstart*.jar"/>
+     		<!--<include name="webstart*.jar"/> -->
      	</fileset>
   	</copy>
   	
@@ -359,7 +359,36 @@
 		<move file="Chainsaw.app" todir="Chainsaw-app" />
 	</target>
   
-  <!-- ================================================================= -->
+  <!-- NOTE: you'll need JSch in your Ant ext libs area for this to work -->
+  <target name="distribution" depends="webstart, iSaw" description="Builds the complete
distribution (Webstart, zip + OSX)">
+  	<delete dir="distribution" failonerror="false"/>
+  	<mkdir dir="distribution"/>
+  	<copy todir="distribution">
+  		<fileset dir=".">
+  			<include name="**/chainsaw-bundle.zip"/>
+  		</fileset>
+  	</copy>
+    <zip destfile="distribution/webstart-bundle.zip" >
+       <zipfileset dir="webstart-dist" includes="*.jnlp"/>
+    	   <zipfileset dir="webstart-dist" prefix="lib" includes="*.jar"/>
+     </zip>
+   	
+  	<!-- TODO copy, unpack the os X image template, update the files, close the image,
move into distribution directory -->
+
+  	<input addproperty="dist.password" message="Please type in your remote password: (Warning:What
you type will appear in plain text on console.)"></input>
+    
+  	<echo message="${dist.user}, ${dist.password}, ${dist.dest}, ${dist.keyfile}" />
+  	
+  	<!-- NOTE: you HAVE to use key based authentication, otherwise it just won't work -->
+  	<scp todir="${dist.user}@people.apache.org:${dist.dest}" passphrase="${dist.password}"
keyfile="${dist.keyfile}" verbose="true">
+      <fileset dir="distribution">
+        <include name="**/*.*"/>
+      </fileset>
+    </scp>
+  </target>
+  
+	
+	<!-- ================================================================= -->
   <!-- Remove all generated (compiled) class files.                      -->
   <!-- ================================================================= -->
   <target name="clean" description="Delete all compiled files.">



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message