-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
53 lines (40 loc) · 1.59 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
50
51
52
53
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="build_jar" name="Create all Jars for Project SshKeyFormats">
<property name="version" value="23.0.1" />
<property name="projectsPath" value="${user.home}/git" />
<echo message="projectsPath: ${projectsPath}" />
<property name="buildPath" value="build" />
<echo message="buildPath: ${buildPath}" />
<target name="build_jar" depends="cleanup_before, create_jar, cleanup_after" />
<target name="cleanup_before">
<delete dir="${buildPath}/bin" />
<mkdir dir="${buildPath}/bin" />
</target>
<target name="create_jar">
<path id="build.classpath">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<javac debug="true" nowarn="true" deprecation="false" destdir="${buildPath}/bin" fork="yes" source="1.8" target="1.8" srcdir="src/main/java" includeantruntime="false" encoding="UTF-8">
<classpath refid="build.classpath" />
</javac>
<jar destfile="${buildPath}/sshkeyformats-${version}.jar">
<manifest>
<attribute name="Version" value="${version}" />
</manifest>
<fileset dir="${buildPath}/bin" />
<fileset dir="" includes="LICENSE.txt"/>
</jar>
<jar destfile="${buildPath}/sshkeyformats-${version}_sources.jar">
<manifest>
<attribute name="Version" value="${version}" />
</manifest>
<fileset dir="src/main/java" includes="**/*.java"/>
<fileset dir="" includes="LICENSE.txt"/>
</jar>
</target>
<target name="cleanup_after">
<delete dir="${buildPath}/bin" />
</target>
</project>