Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ba0351540756f34be91d15688b55f0ab4f6f7350 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="org.eclipse.compare" default="export" basedir="..">
	<target name="init">
		<tstamp/>
		<property name="destdir" value="../../plugin-export" />
		<property name="tempdir" value="../../tmp" />
		<property name="plugin"  value="org.eclipse.compare" />
		<property name="dest"  value="${destdir}/${plugin}_3.1.0" />
		<property name="destjar"  value="${destdir}/${plugin}_3.1.0.jar" />
	</target>

	<target name="build" depends="init">
    	<eclipse.incrementalBuild project="${plugin}" kind="incr"/>
	</target>

	<target name="export" depends="build">
		<delete dir="${tempdir}" />
		<mkdir dir="${tempdir}" />
		<mkdir dir="${destdir}" />
		<delete file="${destjar}" />
		<zip zipfile="${tempdir}/src.zip">
		    <fileset dir="compare" />
  		</zip>
		<zip zipfile="${destjar}">
			<fileset dir=".">
			  <include name="plugin.xml" />
			  <include name="plugin.properties" />
			  <include name="META-INF/**" />
			</fileset>
			<fileset dir="bin" />
			<fileset file="${tempdir}/src.zip" />
		</zip>
		<delete file="${tempdir}/src.zip" />
	</target>
</project>

Back to the top