Permalink
Browse files

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@5453 961051c9-f…

…516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 346a02d commit 3f14a9cf5948d2cc1ec6c4a8f8f54f19c4360730 @enebo enebo committed Dec 31, 2007
Showing with 121 additions and 57 deletions.
  1. +3 −55 build.xml
  2. +5 −2 nbproject/project.xml
  3. +113 −0 netbeans-ant.xml
View
@@ -39,6 +39,8 @@
</patternset>
<taskdef name="retro" classname="net.sourceforge.retroweaver.ant.RetroWeaverTask" classpathref="build.classpath"/>
+
+ <import file="netbeans-ant.xml" optional="true"/>
<target name="init" description="initialize the build">
<xmlproperty file="build-config.xml" keepRoot="false" collapseAttributes="true"/>
@@ -956,61 +958,7 @@ test/externals/rubinius/spec/parser"/>
<fileset dir="${lib.dir}" includes="jruby*.jar"/>
</delete>
<delete dir="${api.docs.dir}"/>
- </target>
-
- <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 location="... specify ..."/> </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.base=${basedir}"/>
- <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/1.8/cache/rake-0.7.1.gem"/>
- </java>
- </target>
-
- <target name="profile-rails-server" 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 location="... specify ..."/> </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.base=${basedir}"/>
- <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>
<property name="nailgun.home" value="${basedir}/tool/nailgun"/>
View
@@ -39,9 +39,11 @@
<target>jar</target>
</action>
<action name="debug">
- <script>nbproject/ide-file-targets.xml</script>
<target>debug-nb</target>
</action>
+ <action name="run">
+ <target>run</target>
+ </action>
</ide-actions>
<export>
<type>folder</type>
@@ -74,10 +76,11 @@
</items>
<context-menu>
<ide-action name="build"/>
+ <ide-action name="rebuild"/>
<ide-action name="clean"/>
<ide-action name="javadoc"/>
+ <ide-action name="run"/>
<ide-action name="test"/>
- <ide-action name="rebuild"/>
<ide-action name="debug"/>
</context-menu>
</view>
View
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." name="netbeans-ant">
+
+ <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 location="... specify ..."/> </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.base=${basedir}"/>
+ <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/1.8/cache/rake-0.7.1.gem"/>
+ </java>
+ </target>
+
+ <target name="profile-rails-server" 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 location="... specify ..."/> </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.base=${basedir}"/>
+ <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>
+
+ <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="${jruby.home}"/>
+ <jvmarg value="${profiler.info.jvmargs.agent}"/>
+ <jvmarg value="-Djruby.base=${basedir}"/>
+ <jvmarg value="-Djruby.home=${basedir}"/>
+ <jvmarg value="-Djruby.lib=${lib.dir}"/>
+ <jvmarg value="-Djruby.shell=/bin/sh"/>
+ <jvmarg value="-Djruby.script=jruby"/>
+ <!-- uncomment below and point to your ruby script -->
+ <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
+ <arg value="/Users/enebo/scripts/fib.rb"/>
+ </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>
+ <nbjpdastart addressproperty="jpda.address" name="JRuby" transport="dt_socket">
+ <classpath>
+ <pathelement path="${jruby.classes.dir}"/>
+ <path refid="build.classpath"/>
+ </classpath>
+ </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="${jruby.home}"/>
+ <jvmarg value="-Xdebug"/>
+ <jvmarg value="-Xnoagent"/>
+ <jvmarg value="-Djava.compiler=none"/>
+ <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
+ <jvmarg value="-Djruby.base=${basedir}"/>
+ <jvmarg value="-Djruby.home=${basedir}"/>
+ <jvmarg value="-Djruby.lib=${lib.dir}"/>
+ <jvmarg value="-Djruby.shell=/bin/sh"/>
+ <jvmarg value="-Djruby.script=jruby"/>
+ <!-- uncomment below and point to your ruby script -->
+ <!-- <arg value="/path/to/your/ruby/script.rb"/> -->
+ </java>
+ </target>
+</project>

0 comments on commit 3f14a9c

Please sign in to comment.