You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/01/27 12:57:34 UTC
svn commit: r903618 -
/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml
Author: sabob
Date: Wed Jan 27 11:57:32 2010
New Revision: 903618
URL: http://svn.apache.org/viewvc?rev=903618&view=rev
Log:
updated build script to include LICENSE,NOTICE and src folders
Modified:
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml?rev=903618&r1=903617&r2=903618&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.feature/clickide-build.xml Wed Jan 27 11:57:32 2010
@@ -21,12 +21,43 @@
<property name="dest.dir" value="dest" />
<property name="version" value="2.1.0.0" />
-
+ <property name="click.plugin" value="../org.apache.click.eclipse" />
+ <property name="cayenne.plugin" value="../org.apache.click.eclipse.cayenne" />
+
+ <!-- Macro for creating a SHA1 checksum -->
+ <macrodef name="digestMacro">
+ <attribute name="file"/>
+ <sequential>
+ <checksum file="@{file}" forceOverwrite="true" algorithm="SHA1" />
+ </sequential>
+ </macrodef>
+
<target name="feature_export">
<mkdir dir="${dest.dir}"/>
- <pde.exportFeatures destination="${dest.dir}/clickide-${version}" exportSource="true"
+ <!-- Copy LICENSE and NOTICE to each plugin META-INF folder -->
+ <copy file="LICENSE.txt" todir="${click.plugin}/META-INF" />
+ <copy file="NOTICE.txt" todir="${click.plugin}/META-INF" />
+ <copy file="LICENSE.txt" todir="${cayenne.plugin}/META-INF" />
+ <copy file="NOTICE.txt" todir="${cayenne.plugin}/META-INF" />
+
+ <!-- Copy clickide sources to dest folder -->
+ <copy todir="${dest.dir}/clickide-${version}/src/org.apache.click.eclipse" overwrite="true">
+ <fileset dir="${click.plugin}/src/">
+ <exclude name="**/package.html"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy clickide cayenne sources to dest folder -->
+ <copy todir="${dest.dir}/clickide-${version}/src/org.apache.click.eclipse.cayenne" overwrite="true">
+ <fileset dir="${cayenne.plugin}/src/">
+ <exclude name="**/package.html"/>
+ </fileset>
+ </copy>
+
+ <pde.exportFeatures destination="${dest.dir}/clickide-${version}" exportSource="false"
exportType="directory" features="org.apache.click.eclipse.feature" useJARFormat="false"/>
+
</target>
<target name="append_files">
@@ -37,11 +68,18 @@
<target name="create_zip">
<zip basedir="${dest.dir}/clickide-${version}" destfile="${dest.dir}/clickide-${version}.zip" />
+ <digestMacro file="${dest.dir}/clickide-${version}.zip"/>
</target>
<target name="clean">
<delete dir="${dest.dir}" />
<delete file="compile.org.apache.click.eclipse.feature.xml" />
+
+ <!-- Remove LICENSE and NOTICE from each plugin META-INF folder -->
+ <delete file="${click.plugin}/META-INF/LICENSE.txt" />
+ <delete file="${click.plugin}/META-INF/NOTICE.txt" />
+ <delete file="${cayenne.plugin}/META-INF/LICENSE.txt" />
+ <delete file="${cayenne.plugin}/META-INF/NOTICE.txt" />
</target>
</project>