ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elekis <>
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

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 id="televidilo-java.classpath">
		<pathelement location="." />
		<path refid="Standard Widget Toolkit (SWT).libraryclasspath" />
	<target name="init">

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

	<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.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/" />
			<classpath refid="televidilo-java.classpath" />

	<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" />

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

	<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 :"/>


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??


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message