Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

Re: IvyDE updatesite packing again

Matt Benson

2010-02-03

Replies: Find Java Web Hosting

Author LoginPost Reply
For fun I'll include the text of my patch file between --- and --- :
---
Index: build.xml
===================================================================
--- build.xml  (revision 906164)
+++ build.xml  (working copy)
@@(protected) @@
        <fileset dir="${updatesite.dir}">
           <include name="plugins/org.apache.ivy_*.jar" />
           <include name="plugins/org.apache.ivy.eclipse*.jar" />
+           <include name="features/org.apache.ivy.*jar" />
        </fileset>
      </copy>
   </target>
@@(protected) @@
      <copy todir="${work.dir}/updatesite">
        <fileset dir="${updatesite.dir}">
           <include name="plugins/org.apache.ivyde.*.jar" />
+           <include name="features/org.apache.ivyde.*.jar" />
        </fileset>
      </copy>
   </target>

+   <macrodef name="siteOptimizerJarPack">
+     <attribute name="directory" />
+     <sequential>
+        <java classpath="${eclipse.classpath}"
classname="org.eclipse.core.launcher.Main"
+            fork="true" failonerror="true">
+           <arg value="-consolelog" />
+           <arg line="-application
org.eclipse.update.core.siteOptimizer" />
+           <arg line="-jarProcessor -verbose -processAll -pack" />
+           <arg line="-outputDir @{directory}" />
+           <arg line="@(protected)}" />
+        </java>
+     </sequential>
+   </macrodef>
+
   <target name="do-pack-jars" depends="eclipse-classpath">
      <!-- launch the packing -->
-     <java classpath="${eclipse.classpath}"
classname="org.eclipse.core.launcher.Main" fork="true"
failonerror="true">
-        <arg value="-consolelog" />
-        <arg line="-application
org.eclipse.update.core.siteOptimizer" />
-        <arg line="-jarProcessor -verbose -processAll -pack" />
-        <arg line="-outputDir ${work.dir}/updatesite/plugins" />
-        <arg line="${work.dir}/updatesite/plugins" />
-     </java>
+     <siteOptimizerJarPack directory="${work.dir}/updatesite/
plugins" />
+     <siteOptimizerJarPack directory="${work.dir}/updatesite/
features" />
      <!-- put the packs back to the updatesite -->
      <copy todir="${updatesite.dir}">
        <fileset dir="${work.dir}/updatesite">
           <include name="plugins/*.jar.pack.gz" />
+           <include name="features/*.jar.pack.gz" />
        </fileset>
      </copy>
   </target>
@@(protected) @@
           <include name="plugins/org.apache.ivy*.jar" />
           <include name="plugins/org.apache.ivy*.jar.pack.gz" />
           <include name="features/org.apache.ivy*.jar" />
+           <include name="features/org.apache.ivy*.jar.pack.gz" />
           <include name="digest.zip" />
        </fileset>
      </checksum>
@@(protected) @@
           <include name="plugins/org.apache.ivy*.jar" />
           <include name="plugins/org.apache.ivy*.jar.pack.gz" />
           <include name="features/org.apache.ivy*.jar" />
+           <include name="features/org.apache.ivy*.jar.pack.gz" />
           <include name="digest.zip" />
        </fileset>
      </checksum>
@@(protected) @@
           <include name="plugins/org.apache.ivy*.jar" />
           <include name="plugins/org.apache.ivy*.jar.pack.gz" />
           <include name="features/org.apache.ivy*.jar" />
+           <include name="features/org.apache.ivy*.jar.pack.gz" />
           <include name="digest.zip" />
        </fileset>
      </checksum>
@@(protected) @@
           <include name="plugins/org.apache.ivy*.jar" />
           <include name="plugins/org.apache.ivy*.jar.pack.gz" />
           <include name="features/org.apache.ivy*.jar" />
+           <include name="features/org.apache.ivy*.jar.pack.gz" />
           <include name="digest.zip" />
        </fileset>
      </checksum>
---
On Feb 3, 2010, at 12:55 PM, Matt Benson wrote:

> Apparently some tools (in particular I'm back to dealing with
> Genuitec Pulse) want not only plugins but features jars to be
> packed. I can pretty well see how to add this to the updatesite
> build, but I don't have a whole lot of idea what is required for me
> to test my changes locally. Can either of you guys, Nicolas/Jon,
> help me with that? I'm hoping to do it all on Mac OSX Tiger w/
> Java 1.5....
>
> Thanks,
> Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.