Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e02a3ce281902286134b23b637e01aac4d16950b (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
35
36
37
38
39
40
<!-- Export a jar of .class files for the org.eclipse.ui.externaltools Eclipse plug-in
     along with other important plugin files to the "plugin-export" subdirectory
     of the target Eclipse installation -->
<project name="Export externaltools" default="export" basedir="..">

	<!-- Set the timestamp and important properties -->
	<target name="init">
		<tstamp/>
		<property name="destdir" value="../../plugin-export" />
		<property name="dest"  value="${destdir}/org.eclipse.ui.externaltools_2.1.0" />
	</target>

	<!-- Create the jar of .class files, and copy other important files to export dir -->
	<target name="export" depends="init">
		<mkdir dir="${destdir}" />
		<delete dir="${dest}" />
		<mkdir dir="${dest}" />
		<delete dir="${dest}/lib"/>
		<mkdir dir="${dest}/lib"/>
		<jar jarfile="${dest}/externaltools.jar">
			<fileset dir="bin">
				<exclude name="org/eclipse/ui/externaltools/internal/ant/inputhandler/*"/>
				<exclude name="org/eclipse/ui/externaltools/internal/ant/logger/*"/>
			</fileset>
		</jar>
		<!-- Create the source zip -->
		<zip zipfile="${dest}/externaltoolssrc.zip">
			<fileset dir="External Tools Base"/>
			<fileset dir="Program Tools Support"/>
		</zip>
		<copy file="plugin.xml" todir="${dest}"/>
		<copy file="plugin.properties" todir="${dest}"/>
		<copy file=".classpath" todir="${dest}"/>
		<copy file=".options" todir="${dest}"/>
		<copy todir="${dest}/icons">
			<fileset dir="icons" />
		</copy>		
	</target>
	
</project>

Back to the top