embox

Форк
0
62 строки · 1.7 Кб
1
<project name="hello" default="dist" basedir=".">
2
	<description>
3
        CLDC HelloWorld build file
4
    </description>
5

6
	<fail message="Prerequisites are missing">
7
		<condition>
8
			<not>
9
				<and>
10
					<available file="${preverify.exec}" />
11
					<available file="${classes.zip}" />
12
					<isset property="appbuild.dir" />
13
				</and>
14
			</not>
15
		</condition>
16
	</fail>
17

18
	<!-- set global properties for this build -->
19
	<property name="src" location="src" />
20
	<property name="build" location="${appbuild.dir}/build" />
21
	<property name="dist" location="${appbuild.dir}/dist" />
22
	<property name="preverify" location="${appbuild.dir}/preverify" />
23

24
	<target name="init">
25
		<!-- Create the time stamp -->
26
		<tstamp />
27
		<!-- Create the build directory structure used by compile -->
28
		<mkdir dir="${build}" />
29
	</target>
30

31
	<target name="compile" depends="init" description="compile the source ">
32
		<!-- Compile the java code from ${src} into ${build} -->
33
		<javac
34
			source="1.4"
35
			target="1.4"
36
			srcdir="${src}"
37
			destdir="${build}"
38
			bootclasspath="${classes.zip}"
39
		/>
40
	</target>
41

42
	<target name="preverify" depends="compile" description="preverify the classes">
43
		<delete dir="${preverify}" failonerror="false"/>
44
		<mkdir dir="${preverify}"/>
45
		<exec executable="${preverify.exec}">
46
			<arg line="-classpath ${classes.zip}"/>
47
			<arg line="-d ${preverify}"/>
48
			<arg line="-nofinalize"/>
49
			<arg line="-nonative"/>
50
			<arg line="${build}"/>
51
		</exec>
52
	</target>
53

54
	<target name="dist" depends="preverify" description="generate the distribution">
55
		<!-- Create the distribution directory -->
56
		<mkdir dir="${dist}" />
57

58
		<!-- Put everything in ${build} into the .jar file -->
59
		<jar jarfile="${dist}/hello.jar" basedir="${preverify}" />
60
	</target>
61

62
</project>
63

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.