ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elekis <ele...@gmail.com>
Subject using ant and ddd(jdb)
Date Sun, 28 Jan 2007 14:51:04 GMT
hi all,
I try to use ddd(jdb) with ant on that project

http://download.gna.org/televidilo/televidilo-0.7.a.tar.bz2

there is the build.xml who is in the tar.bz2 (see after)

-----------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="televidilo-java">
	<property environment="env" />
	<property name="debuglevel" value="source,lines,vars" />
	<property name="target" value="1.5" />
	<property name="source" value="1.5" />
	<path id="Standard Widget Toolkit (SWT).libraryclasspath">
		<pathelement location="/usr/lib/java/swt.jar" />
	</path>
	<path id="televidilo-java.classpath">
		<pathelement location="." />
		<path refid="Standard Widget Toolkit (SWT).libraryclasspath" />
	</path>
	<target name="init">

	</target>
	<target name="clean">
		<delete>
			<fileset dir="." includes="**/*.class" />
		</delete>
		<delete file="televidilo.jar" />
		<delete dir="doc"/>
	</target>

	<target depends="clean" name="cleanall" />

	<target depends="build-subprojects,build-project" name="build" />

	<target name="build-subprojects" />

	<target depends="init" name="build-project">
		<echo message="${ant.project.name}: ${ant.file}" />
		<javac encoding="UTF-8" debug="on" debuglevel="${debuglevel}"
destdir="." source="${source}" target="${target}">
			<src path="." />
			<exclude name="Generated JUIC files/" />
			<exclude name="org/bouil/televidilo/vue/QtJambi.java" />
			<classpath refid="televidilo-java.classpath" />
		</javac>
	</target>

	<target name="run" depends="build">
		<java classname="org.bouil.televidilo.Main" failonerror="true" fork="yes">
			<jvmarg line="-Djava.library.path=/usr/lib/jni/" />
			<classpath refid="televidilo-java.classpath" />
		</java>
	</target>

	<target name="jar" depends="build">
		<jar destfile="televidilo.jar" basedir="." manifest="MANIFEST">
			<include name="**/*.class" />
		</jar>
	</target>

	<target name="javadoc">
		<javadoc access="public" author="true" destdir="doc"
doctitle="Televidilo" nodeprecated="false" nodeprecatedlist="false"
noindex="false" nonavbar="false" notree="false"
packagenames="org.bouil.televidilo.*" source="1.5" splitindex="true"
use="true" version="true">
			<classpath refid="televidilo-java.classpath"/>
			<sourcepath path="."/>
			<tag name="licence" scope="all" description="Licence :"/>
		</javadoc>
	</target>

</project>
----------------------------------------------------------------------------------------------------

I added

<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=localhost:8288"/>

in java target and after that in a console

ddd -jdb -listen 8288

and in a other console
ant run

the prob is in the ddd open, I can't see the code in the windows
viewer windows in ddd.
I suppose it's a problem in ant cause with a g++ program all work (and
in a simple java code, all work too)

is there any option to put??

thanks...
a+++

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


Mime
View raw message