Menu

[r101]: / core / trunk / build.xml  Maximize  Restore  History

Download this file

78 lines (66 with data), 3.3 kB

 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8"?>
<project name="sql2java" basedir="." default="dist">
<property file="${basedir}/project.properties"/>
<property file="${basedir}/environment.properties"/>
<!-- ====================================================================== -->
<!-- == Initialization == -->
<!-- ====================================================================== -->
<target name="init">
<path id="bin.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
</target>
<!-- ====================================================================== -->
<!-- == Preparation == -->
<!-- ====================================================================== -->
<target name="prepare" depends="init">
<mkdir dir="${bin.dir}" />
<mkdir dir="${cls.dir}" />
</target>
<!-- ====================================================================== -->
<!-- == Compilation == -->
<!-- ====================================================================== -->
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}" destdir="${cls.dir}">
<classpath refid="bin.classpath" />
</javac>
</target>
<!-- ====================================================================== -->
<!-- == Clean-up == -->
<!-- ====================================================================== -->
<target name="clean" depends="init">
<delete dir="${cls.dir}" />
<delete dir="${bin.dir}" />
</target>
<!-- ====================================================================== -->
<!-- == Distribution == -->
<!-- ====================================================================== -->
<target name="dist" depends="compile">
<mkdir dir="${bin.dir}/lib" />
<copy todir="${bin.dir}/lib">
<fileset dir="${lib.dir}" />
</copy>
<zip destfile="${basedir}/${project.package.name}.zip" basedir="${bin.dir}" />
</target>
<!-- ====================================================================== -->
<!-- == JAR-Packaging == -->
<!-- ====================================================================== -->
<target name="jar.bin" depends="compile">
<jar jarfile="${project.jar.name}.jar" basedir="${cls.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="net.sf.sql2java.Launcher" />
<attribute name="Class-Path" value="lib/commons-collections-3.1.jar lib/commons-configuration-1.5.jar lib/commons-dbcp-1.2.1.jar lib/commons-lang-2.3.jar lib/commons-logging-1.0.4.jar lib/commons-pool-1.2.jar lib/jdom-1.0.jar lib/log4j-1.2.14.jar lib/velocity-1.3.1.jar lib/velocity-dep-1.3.1.jar lib/" />
</manifest>
</jar>
</target>
<target name="jar.src" depends="compile">
<jar jarfile="${project.package.name}-src.jar" basedir="${src.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
</target>
</project>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.