[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-531) Add debug project ant task (ide action) in the seam-gen generated project in Netbeans
Wayne Zhang (JIRA)
jira-events at jboss.com
Tue Nov 28 08:33:55 EST 2006
Add debug project ant task (ide action) in the seam-gen generated project in Netbeans
-------------------------------------------------------------------------------------
Key: JBSEAM-531
URL: http://jira.jboss.com/jira/browse/JBSEAM-531
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 1.1.0.CR1
Environment: ALL
Reporter: Wayne Zhang
Fix For: 1.1.0.GA
It's better to add a DEBUG PROJECT in the seam-gen generated Netbeans project. I have do some experimental work and it works, as following:
1. change build.xml script in seam-gen package, adding the following lines after copy "project.xml" task (line 392)
<copy tofile="${project.home}/nbproject/ide-file-targets.xml"
file="${basedir}/nbproject/ide-file-targets.xml">
<filterset refid="project"/>
</copy>
<copy tofile="${project.home}/nbproject/debug-jboss.properties"
file="${basedir}/nbproject/debug-jboss.properties"/>
2. Change seam-gen/nbproject/project.xml template, add a debug ide <action> and <context-menu> (line 35)
<action name="debug">
<script>nbproject/ide-file-targets.xml</script>
<target>debug-nb</target>
</action>
3. add a template ant script file "ide-file-targets.xml" contains the debug target in seam-gen/nbproject, content as following:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="@projectName at -IDE">
<property file="nbproject/debug-jboss.properties"/>
<target name="debug-nb">
<nbjpdaconnect name="@projectName@" host="${jpda.host}" address="${jpda.address}" transport="${jpda.transport}">
<!--classpath>
<path path="${debug.classpath}"/>
</classpath>
<sourcepath>
<path path="${ear.docbase.dirs}"/>
</sourcepath-->
</nbjpdaconnect>
</target>
</project>
4. add a JBoss related properties "debug-jboss.properties" file in seam-gen/nbproject, content:
# JBoss server related settings
# Edit the following parameter according to your JBoss configuration
jpda.host=localhost
jpda.address=8787
jpda.transport=dt_socket
ALSO:
The source code template should be formated, it is mixed tab and spaces, which will be not well formated if tab is not 8.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list