[ 
https://jira.codehaus.org/browse/MPJBUILDER-14?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MPJBUILDER-14.
------------------------------------

    Resolution: Won't Fix

Project has been retired, closing as won't fix.

> Have a goal creating a project librairy from a maven project
> ------------------------------------------------------------
>
>                 Key: MPJBUILDER-14
>                 URL: https://jira.codehaus.org/browse/MPJBUILDER-14
>             Project: Maven 1.x JBuilder Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.5
>            Reporter: Henri Tremblay
>
> I've developed a JBuilder plugin that creates a project librairy. The created 
> librairy if the added (manually) to the JBuilder project which is normally in 
> the same directory as the project.xml.
> And so I have a jbuilder project having all the correct dependencies. I'm not 
> using the usual JBuilder plugin goals because I want to be able to have my 
> own JBuilder project with for example the code formatting setup and the maven 
> project as no information about that.
> Here's the diff from head:
> Index: plugin.jelly
> ===================================================================
> RCS file: /home/cvspublic/maven-plugins/jbuilder/plugin.jelly,v
> retrieving revision 1.24
> diff -b -r1.24 plugin.jelly
> 562a563,589
> >   </goal>
> >
> >   <!-- ================================================================== 
> > -->
> >   <!-- jbuilder:project-library                                           
> > -->
> >   <!-- ================================================================== 
> > -->
> >   <!-- Creates a JBuilder project library file containing all             
> > -->
> >   <!-- dependencies of a maven project.                                   
> > -->
> >   <!-- ================================================================== 
> > -->
> >   <goal name="jbuilder:project-library" description="Generate JBuilder 
> > [id_project].library file this project">
> >     <j:set var="fileName" value="${pom.artifactId}"/>
> >     <j:file name="${fileName}.library" prettyPrint="true" xmlns="dummy">
> >       <library>
> >         <x:comment>JBuilder Library Definition File</x:comment>
> >         <fullname>${fileName}</fullname>
> >         <class>
> >           <j:forEach var="lib" items="${pom.dependencies}">
> >               <j:set var="libFullName" value="${lib.getId()}" />
> >             <j:set var="jarPath" 
> > value="${maven.repo.local}/${lib.artifactDirectory}/${lib.getType()}s/${lib.getArtifact()}"
> >  />
> >             <u:replace var="jarPath" oldChar="\" newChar="/" 
> > value="${jarPath}"/>
> >             <path><j:expr value="[${jarPath}]"/></path>
> >           </j:forEach>
> >         </class>
> >       </library>
> >     </j:file>
> >     <echo>================================</echo>
> >     <echo>Creating ${fileName}.library ...</echo>
> >     <echo>================================</echo>
> I understand that parts of the code might be redundant with the librairy 
> generator already in the plugin. I'll let you do the needed refactoring.
> BTW, this goal is a modified version of a plugin developed by Dominique 
> Collette.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to