File: build.xml

package info (click to toggle)
gettext-ant-tasks 0.9.7+svn206-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 192 kB
  • ctags: 117
  • sloc: java: 789; xml: 43; makefile: 17
file content (31 lines) | stat: -rw-r--r-- 1,341 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="gettext-ant-tasks" basedir="." default="use">

	<property name="src.dir" value="src/main/java" />
	<property name="classes.dir" value="target/classes" />

	<target name="clean" description="Delete all generated files">
		<delete dir="${classes.dir}" failonerror="false" />
		<delete file="${ant.project.name}.jar" />
	</target>

	<target name="compile" description="Compiles the Task">
		<mkdir dir="${classes.dir}" />
		<javac srcdir="${src.dir}" destdir="${classes.dir}" source="1.3" target="1.3"/>
	</target>

	<target name="jar" description="JARs the Task" depends="clean,compile">
		<delete file="${ant.project.name}.jar" />
		<jar destfile="${ant.project.name}.jar" basedir="${classes.dir}" />
	</target>

	<target name="use" description="Use the Task">
		<taskdef name="gettext-extract" classname="org.xnap.commons.ant.gettext.GettextExtractKeysTask" classpath="${ant.project.name}.jar" />
		<taskdef name="gettext-merge" classname="org.xnap.commons.ant.gettext.GettextMergeKeysTask" classpath="${ant.project.name}.jar" />
		<taskdef name="gettext-dist" classname="org.xnap.commons.ant.gettext.GettextDistTask" classpath="${ant.project.name}.jar" />
		<gettext-extract poDirectory=".">
			<fileset dir="src" includes="**/*.java" />
		</gettext-extract>
	</target>

</project>