Skip to content

Commit

Permalink
feat: support netbeans single file running/debugging for jfx files
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 committed Aug 20, 2023
1 parent 200486e commit 455aa41
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 52 deletions.
43 changes: 39 additions & 4 deletions litfx-demos/nbactions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,44 @@
</goals>
<properties>
<skipTests>true</skipTests>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
<exec.args>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address} --module-path ${project.build.directory}/modules --module ${moduleName}/${mainClass}</exec.args>
</properties>
</properties>
</action>
</actions>
<action>
<actionName>run.single.main</actionName>
<packagings>
<packaging>*</packaging>
</packagings>
<goals>
<goal>clean</goal>
<goal>javafx:run</goal>
</goals>
<properties>
<skipTests>true</skipTests>
<mainClassName>${packageClassName}</mainClassName>
</properties>
</action>
<action>
<actionName>debug.single.main</actionName>
<packagings>
<packaging>*</packaging>
</packagings>
<goals>
<goal>clean</goal>
<goal>javafx:run@debug</goal>
</goals>
<properties>
<skipTests>true</skipTests>
<jpda.listen>true</jpda.listen>
<mainClassName>${packageClassName}</mainClassName>
</properties>
</action>
<action>
<actionName>CUSTOM-JLink</actionName>
<displayName>JLink</displayName>
<goals>
<goal>clean</goal>
<goal>javafx:jlink</goal>
</goals>
</action>
</actions>
4 changes: 2 additions & 2 deletions litfx-demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
<debug>true</debug>
<debuglevel>lines,vars,source</debuglevel>
<options>
<!--<option>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</option>-->
<option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8000</option>
<option>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</option>
<!--<option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:8000</option>-->
</options>
<mainClass>${moduleName}/${mainClassName}</mainClass>
<includePathExceptionsInClasspath>true</includePathExceptionsInClasspath>
Expand Down
14 changes: 0 additions & 14 deletions nb-configuration.xml

This file was deleted.

13 changes: 0 additions & 13 deletions nbactions-release-sign-artifacts.xml

This file was deleted.

34 changes: 15 additions & 19 deletions nbactions.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<actionName>CUSTOM-Deploy-OSSRH</actionName>
<displayName>Deploy to OSSRH</displayName>
<goals>
<goal>clean</goal>
<goal>javafx:run</goal>
<goal>deploy</goal>
</goals>
<activatedProfiles>
<activatedProfile>ossrh</activatedProfile>
<activatedProfile>release-sign-artifacts</activatedProfile>
</activatedProfiles>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<actionName>CUSTOM-Deploy-Github</actionName>
<displayName>Deploy to Github</displayName>
<goals>
<goal>clean</goal>
<goal>clean javafx:run@debug</goal>
<goal>deploy</goal>
</goals>
<activatedProfiles>
<activatedProfile>github</activatedProfile>
<activatedProfile>release-sign-artifacts</activatedProfile>
</activatedProfiles>
</action>
<action>
<actionName>CUSTOM-JLink</actionName>
<displayName>JLink</displayName>
<goals>
<goal>clean</goal>
<goal>javafx:jlink</goal>
</goals>
</action>
</actions>
</actions>

0 comments on commit 455aa41

Please sign in to comment.