You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "fabrizio giustina (JIRA)" <ji...@codehaus.org> on 2005/03/05 16:09:07 UTC

[jira] Created: (MPECLIPSE-78) avoid duplicated builders/natures (patch)

avoid duplicated builders/natures (patch)
-----------------------------------------

         Key: MPECLIPSE-78
         URL: http://jira.codehaus.org/browse/MPECLIPSE-78
     Project: maven-eclipse-plugin
        Type: Bug
    Versions: 1.9    
    Reporter: fabrizio giustina
     Fix For: 1.10


The eclipse plugin automatically adds the java nature/builder as the first entry for each project.
Anyway, sometime you will need to add more builders and in a different order. Specifying an addictional java builder in project properties, however, lead to a duplicate entries in .project.


The problem is discussed at:
http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html

snippet:

"Create a file project.properties under the csrweb folder, the folder where you will find project.xml. Now add the following in this file.
				
maven.eclipse.projectnatures=org.eclipse.jst.j2ee.web.WebNature,org.eclipse.jdt.core.javanature,org.eclipse.wst.common.modulecore.ModuleCoreNature
maven.eclipse.buildcommands=org.eclipse.wst.common.modulecore.DeployableModuleBuilder,org.eclipse.jdt.core.javabuilder,org.eclipse.jst.j2ee.web.LibDirBuilder,org.eclipse.wst.validation.validationbuilder,org.eclipse.jst.j2ee.LibCopyBuilder,org.eclipse.wst.common.modulecore.LocalDependencyResolver

...

Open the .project and remove the first buildcommand javabuilder and the first nature org.eclipse.jdt.core.javanature.
This is done to ensure that only one entry of javabuilder and org.eclipse.jdt.core.javanature exists.
The correct order of builder and natures are needed to ensure proper functionality
"


This patch solves the problem avoiding addictional javabuilders and javanatures if they are already present in the list specified using project.properties. If maven.eclipse.projectnatures and maven.eclipse.buildcommands don't contain a such entry, everything works as before.

The patch also contains a new specific plugin test.



-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MPECLIPSE-78) avoid duplicated builders/natures (patch)

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPECLIPSE-78?page=all ]
     
fabrizio giustina closed MPECLIPSE-78:
--------------------------------------

     Assign To: fabrizio giustina
    Resolution: Fixed

fixed in svn

> avoid duplicated builders/natures (patch)
> -----------------------------------------
>
>          Key: MPECLIPSE-78
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-78
>      Project: maven-eclipse-plugin
>         Type: Bug
>     Versions: 1.9
>     Reporter: fabrizio giustina
>     Assignee: fabrizio giustina
>      Fix For: 1.10

>
> Original Estimate: 10 minutes
>         Remaining: 10 minutes
>
> The eclipse plugin automatically adds the java nature/builder as the first entry for each project.
> Anyway, sometime you will need to add more builders and in a different order. Specifying an addictional java builder in project properties, however, lead to a duplicate entries in .project.
> The problem is discussed at:
> http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html
> snippet:
> "Create a file project.properties under the csrweb folder, the folder where you will find project.xml. Now add the following in this file.
> 				
> maven.eclipse.projectnatures=org.eclipse.jst.j2ee.web.WebNature,org.eclipse.jdt.core.javanature,org.eclipse.wst.common.modulecore.ModuleCoreNature
> maven.eclipse.buildcommands=org.eclipse.wst.common.modulecore.DeployableModuleBuilder,org.eclipse.jdt.core.javabuilder,org.eclipse.jst.j2ee.web.LibDirBuilder,org.eclipse.wst.validation.validationbuilder,org.eclipse.jst.j2ee.LibCopyBuilder,org.eclipse.wst.common.modulecore.LocalDependencyResolver
> ...
> Open the .project and remove the first buildcommand javabuilder and the first nature org.eclipse.jdt.core.javanature.
> This is done to ensure that only one entry of javabuilder and org.eclipse.jdt.core.javanature exists.
> The correct order of builder and natures are needed to ensure proper functionality
> "
> This patch solves the problem avoiding addictional javabuilders and javanatures if they are already present in the list specified using project.properties. If maven.eclipse.projectnatures and maven.eclipse.buildcommands don't contain a such entry, everything works as before.
> The patch also contains a new specific plugin test.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPECLIPSE-78) avoid duplicated builders/natures (patch)

Posted by "fabrizio giustina (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPECLIPSE-78?page=comments#action_30743 ]
     
fabrizio giustina commented on MPECLIPSE-78:
--------------------------------------------

Patch is attached to MPECLIPSE-80

> avoid duplicated builders/natures (patch)
> -----------------------------------------
>
>          Key: MPECLIPSE-78
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-78
>      Project: maven-eclipse-plugin
>         Type: Bug
>     Versions: 1.9
>     Reporter: fabrizio giustina
>      Fix For: 1.10

>
> Original Estimate: 10 minutes
>         Remaining: 10 minutes
>
> The eclipse plugin automatically adds the java nature/builder as the first entry for each project.
> Anyway, sometime you will need to add more builders and in a different order. Specifying an addictional java builder in project properties, however, lead to a duplicate entries in .project.
> The problem is discussed at:
> http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html
> snippet:
> "Create a file project.properties under the csrweb folder, the folder where you will find project.xml. Now add the following in this file.
> 				
> maven.eclipse.projectnatures=org.eclipse.jst.j2ee.web.WebNature,org.eclipse.jdt.core.javanature,org.eclipse.wst.common.modulecore.ModuleCoreNature
> maven.eclipse.buildcommands=org.eclipse.wst.common.modulecore.DeployableModuleBuilder,org.eclipse.jdt.core.javabuilder,org.eclipse.jst.j2ee.web.LibDirBuilder,org.eclipse.wst.validation.validationbuilder,org.eclipse.jst.j2ee.LibCopyBuilder,org.eclipse.wst.common.modulecore.LocalDependencyResolver
> ...
> Open the .project and remove the first buildcommand javabuilder and the first nature org.eclipse.jdt.core.javanature.
> This is done to ensure that only one entry of javabuilder and org.eclipse.jdt.core.javanature exists.
> The correct order of builder and natures are needed to ensure proper functionality
> "
> This patch solves the problem avoiding addictional javabuilders and javanatures if they are already present in the list specified using project.properties. If maven.eclipse.projectnatures and maven.eclipse.buildcommands don't contain a such entry, everything works as before.
> The patch also contains a new specific plugin test.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MPECLIPSE-78) avoid duplicated builders/natures (patch)

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPECLIPSE-78?page=history ]

Brett Porter updated MPECLIPSE-78:
----------------------------------

    Attachment: test.txt

test attachment

> avoid duplicated builders/natures (patch)
> -----------------------------------------
>
>          Key: MPECLIPSE-78
>          URL: http://jira.codehaus.org/browse/MPECLIPSE-78
>      Project: maven-eclipse-plugin
>         Type: Bug
>     Versions: 1.9
>     Reporter: fabrizio giustina
>      Fix For: 1.10

>
> Original Estimate: 10 minutes
>         Remaining: 10 minutes
>
> The eclipse plugin automatically adds the java nature/builder as the first entry for each project.
> Anyway, sometime you will need to add more builders and in a different order. Specifying an addictional java builder in project properties, however, lead to a duplicate entries in .project.
> The problem is discussed at:
> http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html
> snippet:
> "Create a file project.properties under the csrweb folder, the folder where you will find project.xml. Now add the following in this file.
> 				
> maven.eclipse.projectnatures=org.eclipse.jst.j2ee.web.WebNature,org.eclipse.jdt.core.javanature,org.eclipse.wst.common.modulecore.ModuleCoreNature
> maven.eclipse.buildcommands=org.eclipse.wst.common.modulecore.DeployableModuleBuilder,org.eclipse.jdt.core.javabuilder,org.eclipse.jst.j2ee.web.LibDirBuilder,org.eclipse.wst.validation.validationbuilder,org.eclipse.jst.j2ee.LibCopyBuilder,org.eclipse.wst.common.modulecore.LocalDependencyResolver
> ...
> Open the .project and remove the first buildcommand javabuilder and the first nature org.eclipse.jdt.core.javanature.
> This is done to ensure that only one entry of javabuilder and org.eclipse.jdt.core.javanature exists.
> The correct order of builder and natures are needed to ensure proper functionality
> "
> This patch solves the problem avoiding addictional javabuilders and javanatures if they are already present in the list specified using project.properties. If maven.eclipse.projectnatures and maven.eclipse.buildcommands don't contain a such entry, everything works as before.
> The patch also contains a new specific plugin test.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org