-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
49 lines (42 loc) · 1.72 KB
/
build.xml
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
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<project name="ShellProcess" default="jar" basedir='.'>
<property environment="env" />
<property name="main.dir" value="." />
<property name="src.dir" value="src" />
<property name="build.dir" value="classes" />
<property name="intellij.home" value="${env.IDEA_HOME}" />
<property name="MANIFEST" value="META-INF/MANIFEST.MF" />
<property name="BINARY" value="ShellProcess.jar" />
<path id="intellij.classpath">
<pathelement path="${intellij.home}/lib/openapi.jar" />
<pathelement path="${intellij.home}/lib/util.jar" />
<pathelement path="${intellij.home}/lib/extensions.jar" />
</path>
<target name="jar" depends="compile">
<echo level="info" message="Building primary .jar file." />
<manifest file="${MANIFEST}">
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Created-By" value="Morgan Schweers @ Google Inc"/>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
<jar jarfile="${BINARY}" manifest="${MANIFEST}" index="true">
<fileset dir="${build.dir}" includes="**/*.class" />
<fileset dir="${main.dir}" includes="META-INF/plugin.xml" />
</jar>
</target>
<target name="compile">
<tstamp/>
<mkdir dir="${build.dir}" />
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="on" includeantruntime="false" >
<classpath refid="intellij.classpath" />
<include name="**/*.java" />
</javac>
</target>
<target name="clean" description="Clean all build products.">
<echo level="info" message="Clean all build products." />
<delete file="${BINARY}" />
<delete>
<fileset dir="${build.dir}" includes="**/*.class" />
</delete>
</target>
</project>