
<project name="build.netbeans">
	<target name="profile-single" depends="compile, jar" description="Profile File">
		<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
		<nbprofiledirect>
			<classpath refid="libraries-and-dest.all"/>
		</nbprofiledirect>
		<java fork="true" classname="org.xhtmlrenderer.swing.HTMLTest" 
                        jvm="${profiler.info.jvm}">
                      <jvmarg value="${profiler.info.jvmargs.agent}"/>
                      <jvmarg line="${profiler.info.jvmargs}"/>
                      <env key="LD_LIBRARY_PATH" path="${profiler.info.agentpath}:${env.LD_LIBRARY_PATH}"/>
			<arg value="${file}"/>
			<sysproperty key="show-config" value="${show-config}"/>
			<syspropertyset>
				<propertyref prefix="xr."/>
			</syspropertyset>
			<classpath refid="libraries-and-dest.all"/>
                  </java>
	</target>
	
	<!--
    Optional - If source roots are properly declared in project, should
                            work without setting source path.     
            <sourcepath refid="debug.sourcepath"/> 
    -->
	<target name="debug" depends="compile" if="netbeans.home" description="Debug Project">
		<nbjpdastart name="flying-saucer-simple" addressproperty="jpda.address" transport="dt_socket">
			<classpath refid="run.classpath"/>
			
		</nbjpdastart>
		<java fork="true" classname="org.xhtmlrenderer.swing.HTMLTest">
			<jvmarg value="-Xdebug"/>
			<jvmarg value="-Xnoagent"/>
			<jvmarg value="-Djava.compiler=none"/>
			<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
			<arg value="${file}"/>
			<sysproperty key="show-config" value="${show-config}"/>
			<syspropertyset>
				<propertyref prefix="xr."/>
			</syspropertyset>
			<classpath refid="libraries-and-dest.all"/>
		</java>
	</target>
</project>
