/[pkgs]/devel/OmegaT/OmegaT-build.xml
ViewVC logotype

Contents of /devel/OmegaT/OmegaT-build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Mon Oct 6 15:26:59 2008 UTC (13 months, 2 weeks ago) by olea
Branch: MAIN
CVS Tags: OmegaT-1_7_3_03-5_fc10, F-12-split, OmegaT-1_7_3_03-6_fc11, F-10-split, OmegaT-1_7_3_04-3_fc11, F-11-split, OmegaT-1_7_3_04-4_fc12, OmegaT-1_7_3_04-2_fc11, OmegaT-1_7_3_04-5_fc12, HEAD
File MIME type: text/xml
uploading package
1 <!--
2 build.xml without Neatbans dependencies.
3 by Ismael Olea <ismael@olea.org>, public domain
4 -->
5
6 <project name="OmegaT" default="dist" basedir=".">
7 <description>
8 OmegaT
9 </description>
10 <!-- set global properties for this build -->
11
12 <target name="init">
13 <!-- Create the time stamp -->
14 <tstamp/>
15 <!-- Create the build directory structure used by compile -->
16 <property file="src/org/omegat/Version.properties"/>
17 <condition property="updatenr"
18 value="0${update}"
19 else="${update}">
20 <length string="${update}"
21 length="1"/>
22 </condition>
23 <condition property="distversion"
24 value="${version}"
25 else="${version}_${updatenr}">
26 <equals arg1="${updatenr}" arg2="00"/>
27 </condition>
28 <property name="src" location="src"/>
29 <property name="build" location="build"/>
30 <property name="build.dir" location="build"/>
31 <property name="jar" location="dist"/>
32 <property name="dist" location="dist"/>
33 <mkdir dir="${build}"/>
34 <filter filtersfile="src/org/omegat/Version.properties"/>
35 <copy file="manifest-template.mf" tofile="manifest.mf" filtering="true"/>
36 </target>
37
38 <target name="compile" depends="init"
39 description="compile the source " >
40 <!-- Compile the java code from ${src} into ${build} -->
41 <javac srcdir="${src}" destdir="${build}" verbose="yes">
42 <classpath>
43 <pathelement path="${classpath}"/>
44 <pathelement location="/usr/share/java/htmlparser-1.6.jar"/>
45 <pathelement location="/usr/share/java/vldocking.jar"/>
46 <pathelement location="lib-mnemonics/dist/lib-mnemonics.jar"/>
47 </classpath>
48 </javac>
49 </target>
50
51 <target name="dist" depends="jar">
52 </target>
53
54 <target name="jar" depends="compile,l10n-pack"
55 description="generate the distribution" >
56 <!-- Create the distribution directory -->
57 <mkdir dir="${dist}"/>
58 <copy todir="${build}" >
59 <fileset dir="${src}">
60 <include name="**/*"/>
61 <exclude name="**/*.java"/>
62 </fileset>
63 </copy>
64 <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
65 <jar jarfile="${dist}/OmegaT.jar"
66 basedir="${build}"
67 manifest="manifest.mf"
68 />
69 </target>
70
71 <target name="clean"
72 description="clean up" >
73 <!-- Delete the ${build} and ${dist} directory trees -->
74 <delete dir="${build}"/>
75 <delete dir="${dist}"/>
76 </target>
77
78 <target name="l10n-pack" depends="init" description="Build a distribution of localizable files">
79 <property file="src/org/omegat/Version.properties"/>
80 <mkdir dir="${dist}"/>
81 <property name="l10n.project.dir" value="release/l10n-project"/>
82 <property name="l10n.dir" value="${build.dir}/l10n"/>
83 <mkdir dir="${l10n.dir}"/>
84
85 <!-- minimal -->
86 <property name="l10n.min" value="OmegaT_${distversion}_L10N_Minimal"/>
87 <property name="l10n.min.dir" value="${l10n.dir}/${l10n.min}"/>
88 <mkdir dir="${l10n.min.dir}"/>
89 <copy todir="${l10n.min.dir}">
90 <fileset dir="${l10n.project.dir}"/>
91 </copy>
92 <copy todir="${l10n.min.dir}/source">
93 <fileset dir="."
94 includes="docs/en/instantStartGuideNoTOC.html src/**/Bundle.properties"/>
95 </copy>
96 <copy file="release/readme.txt"
97 tofile="${l10n.min.dir}/source/readme.utf8"
98 encoding="UTF-8"
99 outputencoding="UTF-8">
100 <filterset begintoken="@@" endtoken="@@">
101 <filter token="TRANSLATION_NOTICE"
102 value="This translation is the work of [insert your name], copyright© [insert year]."/>
103 </filterset>
104 </copy>
105 <zip destfile="${dist}/${l10n.min}.zip"
106 basedir="${l10n.dir}" includes="${l10n.min}/**" />
107
108 <!-- full -->
109 <property name="l10n.max" value="OmegaT_${distversion}_L10N_Full"/>
110 <property name="l10n.max.dir" value="${l10n.dir}/${l10n.max}"/>
111 <mkdir dir="${l10n.max.dir}"/>
112 <copy todir="${l10n.max.dir}">
113 <fileset dir="${l10n.project.dir}"/>
114 </copy>
115 <copy todir="${l10n.max.dir}/source"> <!-- Copy all files except legalNotices.html -->
116 <fileset dir="."
117 includes="docs/en/** src/**/Bundle.properties"
118 excludes="docs/en/legalNotices.html"/>
119 </copy>
120 <copy file="release/readme.txt"
121 tofile="${l10n.max.dir}/source/readme.utf8"
122 encoding="UTF-8"
123 outputencoding="UTF-8">
124 <filterset begintoken="@@" endtoken="@@">
125 <filter token="TRANSLATION_NOTICE"
126 value="This translation is the work of [insert your name], copyright© [insert year]."/>
127 </filterset>
128 </copy>
129 <copy todir="${l10n.max.dir}/source"
130 encoding="UTF-8"
131 outputencoding="UTF-8">
132 <fileset dir="."
133 includes="docs/en/legalNotices.html"/>
134 <filterset begintoken="@@" endtoken="@@">
135 <filter token="TRANSLATION_NOTICE"
136 value="&lt;p&gt;This translation is the work of [insert your name], copyright© [insert year].&lt;/p&gt;"/>
137 </filterset>
138 </copy>
139 <zip destfile="${dist}/${l10n.max}.zip"
140 basedir="${l10n.dir}" includes="${l10n.max}/**" />
141 </target>
142
143 </project>
144

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2