Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.7.0
Fetching contributors…

Cannot retrieve contributors at this time

132 lines (117 sloc) 5.184 kb
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="netbeans-ant">
<property name="args.default.file" value=".debug.properties"/>
<property file="${args.default.file}"/>
<target name="profile-gem-install-rake" depends="jar" description="Profile a local gem installation of Rake">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
<nbprofiledirect>
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
</nbprofiledirect>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
<classpath>
<pathelement location="${jruby.instrumented.classes.dir}" />
<path refid="build.classpath"/>
<pathelement path="${lib.dir}/jruby.jar"/>
<pathelement path="${test.classes.dir}"/>
<pathelement path="${test.dir}/requireTest.jar"/>
</classpath>
<jvmarg value="-Djruby.home=${basedir}"/>
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<arg value="bin/gem"/>
<arg value="install"/>
<arg value="lib/ruby/gems/shared/cache/rake-0.7.1.gem"/>
</java>
</target>
<target name="profile-rails-server" depends="jar" description="Profile the Rails server">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
<nbprofiledirect>
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
</nbprofiledirect>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
<classpath>
<pathelement location="${jruby.instrumented.classes.dir}" />
<path refid="build.classpath"/>
<pathelement path="${lib.dir}/jruby.jar"/>
<pathelement path="${test.classes.dir}"/>
<pathelement path="${test.dir}/requireTest.jar"/>
</classpath>
<jvmarg value="-Djruby.home=${basedir}"/>
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
<jvmarg value="-Djruby.thread.pooling=true"/>
<jvmarg value="-server"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<arg value="testapp/script/server"/>
</java>
</target>
<target name="profile-nb" depends="compile" description="Profile Project">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
<input message="Enter flags and args for `jruby` command:" addproperty="jruby.args" defaultvalue="${args.default}"/>
<echo file="${args.default.file}" append="false">args.default=${jruby.args}
</echo>
<nbprofiledirect>
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
</nbprofiledirect>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
<sysproperty key="jruby.home" value="${basedir}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg value="-Djruby.home=${basedir}"/>
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
<!--
<env key="RUBYOPT" value=""/>
-->
<arg line="${jruby.args}"/>
</java>
</target>
<target name="debug-nb" depends="jar" description="Task for debugging JRuby within NetBeans">
<fail unless="netbeans.home">This target can only run inside the NetBeans IDE.</fail>
<input message="Enter flags and args for `jruby` command:" addproperty="jruby.args" defaultvalue="${args.default}"/>
<echo file="${args.default.file}" append="false">args.default=${jruby.args}
</echo>
<nbjpdastart addressproperty="jpda.address" name="JRuby" transport="dt_socket">
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
<sourcepath path="${src.dir}"/>
</nbjpdastart>
<java classname="org.jruby.Main" maxmemory="${jruby.launch.memory}" fork="true">
<classpath>
<pathelement path="${jruby.classes.dir}"/>
<path refid="build.classpath"/>
</classpath>
<sysproperty key="jruby.home" value="${basedir}"/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=none"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
<jvmarg value="-Djruby.home=${basedir}"/>
<jvmarg value="-Djruby.lib=${lib.dir}"/>
<jvmarg value="-Djruby.shell=/bin/sh"/>
<jvmarg value="-Djruby.script=jruby"/>
<!--
<env key="RUBYOPT" value=""/>
-->
<arg line="${jruby.args}"/>
</java>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.