Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

old pack200

  • Loading branch information...
commit e5e598da9ffbdf34f778a18341db8adc998197d4 1 parent 48a31f5
@denuno denuno authored
Showing with 52 additions and 4 deletions.
  1. +52 −4 org.cfeclipse.cfml.update-dev/Publish.xml
View
56 org.cfeclipse.cfml.update-dev/Publish.xml
@@ -2,9 +2,6 @@
<property name="buildtype" value="update-dev"/>
<taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="lib/ant-classloadertask.jar" />
- <taskdef name="twitter" classname="den.ant.twitter.AntTwitterTask" classpathref="build.lib.path" />
- <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="build.lib.path" />
-
<classloader loader="project">
<classpath>
<fileset dir="lib/" includes="*.jar" excludes="ant-classloadertask.jar" />
@@ -15,6 +12,9 @@
<include name="*.jar" />
</fileset>
</path>
+ <taskdef name="twitter" classname="den.ant.twitter.AntTwitterTask" classpathref="build.lib.path" />
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="build.lib.path" />
+
<target name="cleanup">
<delete>
@@ -112,7 +112,55 @@
bitlyApiKey="bitly-key"
enableBitly="false" />
</target>
+
+ <!-- squish update site files -->
+
+ <target name="optimize" description="Site Optimizer">
+ <!-- CUSTOM -->
+ <property name="ECLIPSE_HOME" location="/Users/valliant/programs/eclipse-inst/eclipse3.6.64B/" />
+ <property name="jar.name" value="org.ucdetector_1.9.0.jar" />
+ <!-- LAUNCHER -->
+ <pathconvert property="LAUNCHER">
+ <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.equinox.launcher_*.jar" />
+ </pathconvert>
+ <echo>LAUNCHER = '${LAUNCHER}' - when LAUNCHER is empty, create new property 'LAUNCHER'</echo>
+
+ <echo>Running build</echo>
+ <java jar="${LAUNCHER}" fork="true" failonerror="true">
+ <arg line="-debug -consolelog" />
+ <arg line="-application org.eclipse.equinox.p2.publisher.UpdateSitePublisher" />
+ <arg line="-source ./" />
+ <arg line="-metadataRepository file://tmp/repository" />
+ <arg line="-artifactRepository file://tmp/repository" />
+ <arg line="-compress" />
+ <arg line="-publishArtifacts" />
+ </java>
+
+ <!-- Step 4 and 5 -->
+
+ <!-- 1. Part -->
+ <echo>1. For each JAR file in question, "condition" or "repack" the JAR file to prepare it for the second part.</echo>
+ <java jar="${LAUNCHER}" fork="true" failonerror="true">
+ <arg line="-debug -consolelog" />
+ <arg line="-application org.eclipse.update.core.siteOptimizer" />
+ <arg line="-jarProcessor -verbose -processAll -repack -outputDir ${basedir}/plugins" />
+ <arg line="${basedir}/plugins/${jar.name}" />
+ <arg line="file://tmp/repository/plugins/org.cfeclipse.cfml_1.4.5.201202261042.jar" />
+ </java>
+
+ <!-- 2. Part -->
+ <echo>2. Generate .jar.pack.gz files from a set of conditioned JAR files. Also generate digest.zip</echo>
+ <java jar="${LAUNCHER}" fork="true" failonerror="true">
+ <arg line="-debug -consolelog" />
+ <arg line="-application org.eclipse.update.core.siteOptimizer" />
+ <arg line="-digestBuilder" />
+ <arg line="-digestOutputDir=${basedir}" />
+ <arg line="-siteXML=${basedir}/site.xml" />
+ <arg line="-jarProcessor -verbose -pack -outputDir ${basedir} ${basedir}" />
+ </java>
+ </target>
+
<macrodef name="push">
<attribute name="remotedir" />
<sequential>
@@ -123,7 +171,7 @@
<!-- I have no idea why i needed to do this. when i had all of them
in a single scp call, it kept hanging.-->
<scp port="${site.ssh.port}" todir="${site.username}:${site.password}@${site.url}:${site.htmlroot}/@{remotedir}" trust="true" verbose="true">
- <fileset dir="." includes="site.xml,cfeupdatesite.zip,associateSites.xml,index.html,artifacts.jar,content.jar,logs.zip,removePreviousBuilds.sh" />
+ <fileset dir="." includes="site.xml,cfeupdatesite.zip,associateSites.xml,index.html,artifacts.jar,content.jar,content.xml,category.xml,changelog.xml,logs.zip,removePreviousBuilds.sh" />
</scp>
<scp port="${site.ssh.port}" todir="${site.username}:${site.password}@${site.url}:${site.htmlroot}/@{remotedir}/web" trust="true" verbose="true">
<fileset dir="web">
Please sign in to comment.
Something went wrong with that request. Please try again.