Ignore Netbeans run configuration file #145

Merged
merged 1 commit into from Apr 29, 2011

Conversation

Projects
None yet
2 participants
@bripkens
Contributor

bripkens commented Apr 15, 2011

The file nbactions.xml will be created in the root directory of a Netbeans project. It contains information specific to run configuration (think eclipse foo.launch files).

Extract from an example nbactions.xml:

<?xml version="1.0" encoding="UTF-8"?>
<actions>
    <action>
        <actionName>run</actionName>
        <goals>
            <goal>process-classes</goal>
            <goal>org.codehaus.mojo:exec-maven-plugin:1.1.1:exec</goal>
        </goals>
        <properties>
            <exec.classpathScope>runtime</exec.classpathScope>
            <exec.args>-classpath %classpath de.bripkens.svgexport.Exporter ./src/test/resources/Soccerball.svg target/soccerball.pdf PDF</exec.args>
            <exec.executable>java</exec.executable>
        </properties>
    </action>
    <action>
        <actionName>debug</actionName>
        <goals>
            <goal>process-classes</goal>
            <goal>org.codehaus.mojo:exec-maven-plugin:1.1.1:exec</goal>
        </goals>
        <properties>
            <exec.classpathScope>runtime</exec.classpathScope>
            <exec.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath de.bripkens.svgexport.Exporter ./src/test/resources/Soccerball.svg target/soccerball.pdf PDF</exec.args>
            <jpda.listen>true</jpda.listen>
            <exec.executable>java</exec.executable>
        </properties>
    </action>
    <action>
        <actionName>profile</actionName>
        <goals>
            <goal>process-classes</goal>
            <goal>org.codehaus.mojo:exec-maven-plugin:1.1.1:exec</goal>
        </goals>
        <properties>
            <exec.args>${profiler.args} -classpath %classpath de.bripkens.svgexport.Exporter ./src/test/resources/Soccerball.svg target/soccerball.pdf PDF</exec.args>
            <profiler.action>profile</profiler.action>
            <exec.executable>${profiler.java}</exec.executable>
        </properties>
    </action>
</actions>

defunkt added a commit that referenced this pull request Apr 29, 2011

Merged pull request #145 from bripkens/master.
Ignore Netbeans run configuration file

@defunkt defunkt merged commit dfb82f5 into github:master Apr 29, 2011

drothmaler pushed a commit to drothmaler/gitignore that referenced this pull request May 27, 2014

Merged pull request #145 from bripkens/master.
Ignore Netbeans run configuration file

nitinkgp23 pushed a commit to nitinkgp23/gitignore that referenced this pull request Oct 8, 2016

nbactions.xml must not be ignored (?)
This file as documentation (which seems lacking) states is used for calling custom Maven goals from the IDE.
Ignoring this file was a source much confusion in few projects (mapping Run action to custom goals... etc etc) 
Also this file does anything worth ignoring
Added by #145
Exclusion of `nbactions.xml`  from `.gitgnore` should be discussed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment