/[svn]/jsampler/trunk/build.xml
ViewVC logotype

Contents of /jsampler/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2146 - (show annotations) (download) (as text)
Mon Oct 11 09:31:27 2010 UTC (9 years ago) by iliev
File MIME type: text/xml
File size: 9812 byte(s)
* Fantasia: Migrated to substance 6.1
* Fantasia: Some minor GUI enhancements

1 <project name="JSampler" default="build-fantasia" basedir=".">
2 <description>This buildfile is used to build JSampler distributions</description>
3
4 <property name="jlscp.version" value="0.8"/>
5 <property name="jlscp.srcdir" value="lib/required/jlscp/src"/>
6 <property name="juife.version" value="0.4a"/>
7 <property name="juife.srcdir" value="lib/required/juife/src"/>
8 <property name="JSampler.version" value="0.9"/>
9
10 <target name="build-jsclassic" depends="clean-jsclassic,build-manifest">
11 <manifest file="dist/build/views.mf">
12 <attribute name="JS-Views" value="classic"/>
13 <attribute name="JS-Default-View" value="classic"/>
14
15 <section name="classic">
16 <attribute name="View-Name" value="JS Classic"/>
17 <attribute name="View-Config" value="org.jsampler.view.classic.ViewConfig"/>
18 <attribute name="Main-Frame" value="org.jsampler.view.classic.MainFrame"/>
19 <attribute name="Progress-Indicator" value="org.jsampler.view.classic.ProgressDlg"/>
20 </section>
21 </manifest>
22
23 <copy todir="./dist/build/org/jsampler/view">
24 <fileset file="./dist/build/views.mf"/>
25 </copy>
26
27 <unjar src="lib/required/jlscp.jar" dest="dist/build">
28 <patternset>
29 <include name="org/**"/>
30 </patternset>
31 </unjar>
32
33 <unjar src="lib/required/juife.jar" dest="dist/build">
34 <patternset>
35 <include name="net/**"/>
36 </patternset>
37 </unjar>
38
39 <javac debug="true" debuglevel="source,lines" srcdir="src" destdir="dist/build" excludes="org/jsampler/view/fantasia/**" />
40 <copy todir="./dist/build/org/jsampler/langprops">
41 <fileset dir="./src/org/jsampler/langprops"/>
42 </copy>
43 <copy todir="./dist/build/org/jsampler/view/std/langprops">
44 <fileset dir="./src/org/jsampler/view/std/langprops"/>
45 </copy>
46 <copy todir="./dist/build/org/jsampler/view/classic/langprops">
47 <fileset dir="./src/org/jsampler/view/classic/langprops"/>
48 </copy>
49 <copy todir="./dist/build/licenses">
50 <fileset dir="licenses"/>
51 </copy>
52 <copy todir="./dist/build/org/jsampler/view/classic/res">
53 <fileset dir="res/js-classic"/>
54 </copy>
55 <delete dir="./dist/build/org/jsampler/view/fantasia"/>
56 <jar basedir="./dist/build" excludes="Manifest" destfile="./dist/JS_Classic-${JSampler.version}.jar" manifest="./dist/build/Manifest"/>
57 <delete dir="./dist/build"/>
58 </target>
59
60 <target name="build-fantasia" depends="clean-fantasia,build-manifest">
61 <manifest file="dist/build/views.mf">
62 <attribute name="JS-Views" value="fantasia"/>
63 <attribute name="JS-Default-View" value="fantasia"/>
64
65 <section name="fantasia">
66 <attribute name="View-Name" value="Fantasia"/>
67 <attribute name="View-Config" value="org.jsampler.view.fantasia.ViewConfig"/>
68 <attribute name="Main-Frame" value="org.jsampler.view.fantasia.MainFrame"/>
69 <attribute name="Progress-Indicator" value="org.jsampler.view.fantasia.ProgressDlg"/>
70 </section>
71 </manifest>
72
73 <copy todir="./dist/build/org/jsampler/view">
74 <fileset file="./dist/build/views.mf"/>
75 </copy>
76
77 <unjar src="lib/required/jlscp.jar" dest="dist/build">
78 <patternset>
79 <include name="org/**"/>
80 </patternset>
81 </unjar>
82
83 <unjar src="lib/required/juife.jar" dest="dist/build">
84 <patternset>
85 <include name="net/**"/>
86 </patternset>
87 </unjar>
88
89 <unjar src="lib/required/trident.jar" dest="dist/build">
90 </unjar>
91
92 <unjar src="lib/required/substance.jar" dest="dist/build">
93 </unjar>
94
95 <unjar src="lib/required/swingx.jar" dest="dist/build">
96 </unjar>
97
98 <condition property="mac-src" value="org/jsampler/view/fantasia/MacOSApplicationHandler.java" else="">
99 <not><os name="mac" /></not>
100 </condition>
101
102 <javac debug="true" debuglevel="source,lines" srcdir="src" destdir="dist/build" excludes="org/jsampler/view/classic/** ${mac-src}"/>
103
104 <copy todir="./dist/build/org/jsampler/langprops">
105 <fileset dir="./src/org/jsampler/langprops"/>
106 </copy>
107 <copy todir="./dist/build/org/jsampler/view/std/langprops">
108 <fileset dir="./src/org/jsampler/view/std/langprops"/>
109 </copy>
110 <copy todir="./dist/build/org/jsampler/view/fantasia/langprops">
111 <fileset dir="./src/org/jsampler/view/fantasia/langprops"/>
112 </copy>
113 <copy todir="./dist/build/licenses">
114 <fileset dir="licenses"/>
115 </copy>
116 <copy todir="./dist/build/org/jsampler/view/fantasia/res">
117 <fileset dir="res/fantasia"/>
118 </copy>
119 <delete dir="./dist/build/org/jsampler/view/classic"/>
120 <jar basedir="./dist/build" excludes="Manifest" destfile="./dist/Fantasia-${JSampler.version}.jar" manifest="./dist/build/Manifest"/>
121 <delete dir="./dist/build"/>
122 </target>
123
124 <target name="build-fantasia-osx" depends="build-fantasia">
125 <copy todir="./dist/Fantasia.app/Contents">
126 <fileset file="./res/fantasia/osx/Info.plist"/>
127 </copy>
128 <copy todir="./dist/Fantasia.app/Contents">
129 <fileset file="./res/fantasia/osx/PkgInfo"/>
130 </copy>
131 <copy todir="./dist/Fantasia.app/Contents/MacOS">
132 <fileset file="/System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources/MacOS/JavaApplicationStub"/>
133 </copy>
134 <chmod file="./dist/Fantasia.app/Contents/MacOS/JavaApplicationStub" perm="755" />
135 <copy todir="./dist/Fantasia.app/Contents/Resources/Java">
136 <fileset file="./dist/Fantasia-${JSampler.version}.jar"/>
137 </copy>
138 <copy todir="./dist/Fantasia.app/Contents/Resources">
139 <fileset file="./res/fantasia/osx/Fantasia.icns"/>
140 </copy>
141 <copy todir="./dist/Fantasia.app/Contents/Resources">
142 <fileset file="./res/fantasia/osx/LSCPScript.icns"/>
143 </copy>
144 </target>
145
146 <target name="build-coredoc" depends="clean-coredoc">
147 <mkdir dir="doc/api"/>
148 <javadoc sourcepath="./src" destdir="./doc/api" windowtitle="JSampler ${JSampler.version} API specification" overview="./src/overview.html" Author="false" splitindex="true" use="true">
149 <fileset dir="${jlscp.srcdir}" defaultexcludes="yes"></fileset>
150 <fileset dir="${juife.srcdir}" defaultexcludes="yes"></fileset>
151 <package name="org.jsampler"/>
152 <package name="org.jsampler.event"/>
153 <package name="org.jsampler.task "/>
154 <package name="org.jsampler.view"/>
155 <doctitle>JSampler ${JSampler.version} API specification</doctitle>
156 <header><![CDATA[<b>JSampler</b><br><font size=-1>v${JSampler.version}</font>]]></header>
157 <bottom><![CDATA[<font size=-1>Copyright &copy; 2009 Grigor Iliev. All rights reserved.</font>]]></bottom>
158 </javadoc>
159 </target>
160
161 <target name="clean-jsclassic">
162 <delete file="dist/JS_Classic-${JSampler.version}.jar"/>
163
164
165 </target>
166
167 <target name="clean-fantasia">
168 <delete file="dist/Fantasia-${JSampler.version}.jar"/>
169 <delete dir="dist/Fantasia.app"/>
170
171 </target>
172
173 <target name="clean-coredoc">
174 <delete dir="doc"/>
175 </target>
176
177 <target name="clean-all" depends="clean-coredoc">
178 <delete dir="dist"/>
179
180
181 </target>
182
183 <target name="build-manifest">
184 <mkdir dir="dist/build"/>
185 <manifest file="dist/build/Manifest">
186 <attribute name="Main-Class" value="org.jsampler.JSampler"/>
187
188 <section name="org/linuxsampler/lscp/">
189 <attribute name="Specification-Title" value="A java LinuxSampler control protocol API"/>
190 <attribute name="Specification-Version" value="1.4"/>
191 <attribute name="Specification-Vendor" value="Grigor Iliev"/>
192 <attribute name="Implementation-Title" value="org.linuxsampler.lscp"/>
193 <attribute name="Implementation-Version" value="${jlscp.version}"/>
194 <attribute name="Implementation-Vendor" value="Grigor Iliev"/>
195 </section>
196
197 <section name="net/sf/juife/">
198 <attribute name="Specification-Title" value="Java User Interface Framework Extensions"/>
199 <attribute name="Specification-Version" value="0.4"/>
200 <attribute name="Specification-Vendor" value="Grigor Iliev"/>
201 <attribute name="Implementation-Title" value="net.sf.juife"/>
202 <attribute name="Implementation-Version" value="${juife.version}"/>
203 <attribute name="Implementation-Vendor" value="Grigor Iliev"/>
204 </section>
205
206 <section name="org/jsampler/">
207 <attribute name="Specification-Title" value="A java front-end for LinuxSampler"/>
208 <attribute name="Specification-Version" value="0.9"/>
209 <attribute name="Specification-Vendor" value="Grigor Iliev"/>
210 <attribute name="Implementation-Title" value="org.jsampler"/>
211 <attribute name="Implementation-Version" value="${JSampler.version}"/>
212 <attribute name="Implementation-Vendor" value="Grigor Iliev"/>
213 </section>
214 </manifest>
215 </target>
216
217 </project>
218

  ViewVC Help
Powered by ViewVC