ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <ptwa...@gmail.com>
Subject Couple of questions (involves bb-ant-tools)
Date Sun, 09 Nov 2008 08:21:04 GMT
I am trying to move to using a common.properties and build.xml.

In my "old method" I had this task:

	<target name="-build" depends="-init">
		<rapc output="${cod.name}" quiet="true" destdir="${dist.dir}"
jdehome="${jde.home}">
			<jdp
				type="cldc"
				title="${cod.title}" vendor="${cod.vendor}"
				version="${cod.version}"
				desc="${cod.description}"
				systemmodule="true"
				runonstartup="true"
				startuptier="7" >
				<entry
					title="${cod.title}"
					arguments="clicked"
					systemmodule="false"
					runonstartup="false"
					startuptier="7"
					ribbonposition="0"
					icon="net/berrysoft/dib/img/icon.png" />
			</jdp>
			<src>
				<fileset dir="${src.dir}">
					<include name="**/*.java" />
					<include name="**/*.png" />
					<include name="resources/**/*.*" />
				</fileset>
			</src>
		</rapc>
		<echo message="Build ${cod.version} complete." />
	</target>

and I am doing this in the project's build.xml:

<project name="some name" default="build.debug">
   <import file="../common/build.xml" />
   <property name="cod.name" value="net_berrysoft_dib8800" />
</project>

and want to have a project.properties file something like this:

type=cldc
title=DIB 8800
desc=some description
vender=Berrysoft Studios
version=1.0
systemmodule="true"
runonstartup=true
startuptier=7
entry.title=
entry.title=${title}
entry.arguments=clicked
entry.systemmodule=false
entry.runonstartup=false
entry.startuptier=7
entry.ribbonposition=0
entry.icon="net/berrysoft/dib/img/icon.png"

and I'm wondering if this is the correct way to include the <entry/>
tags properties?

Also, do I really need the <src></src> tags?  If not, why not?

Thanks for any help, patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message