blob: 6dc5d1c9df8bd46eee2574cfebaefa479a48bf04 [file] [log] [blame]
Yasuo Doshirob6938d02008-06-27 21:34:33 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 *************************************************************************
4 * Copyright (c) 2006 Actuate Corporation.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors:
11 * Actuate Corporation - initial API and implementation
12 *
13 *************************************************************************
14 *
15 * build.xml
16 *
17 * Build script for project org.eclipse.datatools.modelbase.sql.query.edit.nl
18 *
19 * "Clean" - Clean nl.jar file and *.properties files generated from
20 * native2ascii.exe.
21 * "Jar" - Convert *_xx_YY.msg files into *_xx_YY.properties files by native2ascii.exe and
22 * create nl.jar file.
23 * "Export" - Export the project, for instance, jar files are copied to a designated folder.
24 * this task must be called after calling Jar task, so it needn't depend on Jar explicitly
25 *
26 * Usage:
27 * ant [any one or more of the public targets]
28 * -Declipse.home=<your eclipse home>
29 * -Ddtp.home=<your DTP plugins source home> [optional]
30 *
31 * Default target is "Jar".
32 *
33 * Notes:
34 * 1. classpath need to be set for junit.jar
35 * 2. The build script requires Ant 1.6
36 *
37-->
38
39<project name="org.eclipse.datatools.modelbase.sql.query.edit.nl" default="Jar" basedir=".">
40 <description>NL Fragment for org.eclipse.datatools.modelbase.sql.query.edit</description>
41
42 <property file="META-INF/MANIFEST.MF" />
43 <property name="dir.src" value="src" />
44 <property name="dir.bin" value="bin" />
45 <property name="nl.group" value="1" />
46 <property name="module.name" value="org.eclipse.datatools.modelbase.sql.query.edit.nl" />
47 <property name="jar.name" value="${module.name}${nl.group}_${Bundle-Version}.jar" />
48
49 <target name="Clean">
50 <delete>
51 <fileset dir="." includes="**/*_??_??.properties" />
52 <fileset dir="." includes="${jar.name}" />
53 </delete>
54 </target>
55
56 <target name="NativeToAscii"
57 description="Execute native2ascii for *.msg files">
58
59
60 <native2ascii encoding="Cp1252"
61 src="."
62 dest="."
63 ext=".properties"
64 includes="**/*_de_DE.msg, **/*_fr_FR.msg, **/*_es_ES.msg"/>
65 <native2ascii encoding="GBK"
66 src="."
67 dest="."
68 ext=".properties"
69 includes="**/*_zh_CN.msg"/>
70 <native2ascii encoding="SJIS"
71 src="."
72 dest="."
73 ext=".properties"
74 includes="**/*_ja_JP.msg"/>
75 <native2ascii encoding="MS949"
76 src="."
77 dest="."
78 ext=".properties"
79 includes="**/*_ko_KR.msg"/>
80 </target>
81
82 <target name="nl-jar">
83 <jar destfile="${jar.name}" manifest="./META-INF/MANIFEST.MF">
84 <zipfileset dir="." includes="plugin_??_??.properties"/>
85 </jar>
86 </target>
87
88 <target name="Jar" depends="NativeToAscii, nl-jar" >
89 </target>
90 <target name="Export">
91 <copy todir="${export.dir}">
92 <fileset dir="." includes="${jar.name}"/>
93 </copy>
94 </target>
95
96</project>