[mevenide-dev] [jira] Commented: (MEVENIDE-599) Changing the working directory does not update custom goals
"Daniel Mutch (JIRA)" <jira-yCVjj/[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.devel |
|---|---|
| Message-ID | <11581763.1202719589045.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/MEVENIDE-599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123234 ]
Daniel Mutch commented on MEVENIDE-599:
---------------------------------------
If I have the following in my nbactions.xml file: Note the custom run action
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<netbeans.jar.run.workdir>C:\dan\temp</netbeans.jar.run.workdir>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<jpda.listen>true</jpda.listen>
<netbeans.jar.run.debugparams>-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}</netbeans.jar.run.debugparams>
<netbeans.jar.run.workdir>C:\dan\temp</netbeans.jar.run.workdir>
</properties>
</action>
<action>
<actionName>CUSTOM-Custom Run</actionName>
<displayName>Custom Run</displayName>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<netbeans.jar.run.workdir>C:\dan\temp</netbeans.jar.run.workdir>
</properties>
</action>
</actions>
If i change the working directory via properties i will get
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<netbeans.jar.run.workdir>C:\dan\temp2</netbeans.jar.run.workdir>
</properties>
</action>
<action>
<actionName>debug</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<jpda.listen>true</jpda.listen>
<netbeans.jar.run.debugparams>-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}</netbeans.jar.run.debugparams>
<netbeans.jar.run.workdir>C:\dan\temp2</netbeans.jar.run.workdir>
</properties>
</action>
<action>
<actionName>CUSTOM-Custom Run</actionName>
<displayName>Custom Run</displayName>
<goals>
<goal>package</goal>
<goal>org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar</goal>
</goals>
<properties>
<netbeans.jar.run.workdir>C:\dan\temp</netbeans.jar.run.workdir>
</properties>
</action>
</actions>
Note the main run action has changed its working directory but the custom profile has not. Having thought about it, it is difficult to decide what should happen here. At first i assumed all instances of property <netbeans.jar.run.workdir> should be updated but now i'm not so sure. What happens if the reason i have the custom run action is to run the same app against a different working directory?
> Changing the working directory does not update custom goals
> -----------------------------------------------------------
>
> Key: MEVENIDE-599
> URL: http://jira.codehaus.org/browse/MEVENIDE-599
> Project: mevenide
> Issue Type: Bug
> Components: mevenide2-netbeans
> Environment: JDK 1.6 u4, NB 6m1
> Reporter: Daniel Mutch
> Assignee: Milos Kleint
> Fix For: NB_3.1
>
>
> Modify the working directory for a project with custom goals. Custom goals will retain previous working directory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email