Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPJBUILDER-14

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPJBUILDER-14
    Summary: Have a goal creating a project librairy from a maven project
       Type: New Feature

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-jbuilder-plugin
   Versions:
             1.5

   Assignee: Emmanuel Venisse
   Reporter: Henri Tremblay

    Created: Sat, 28 Aug 2004 9:14 AM
    Updated: Sat, 28 Aug 2004 9:14 AM

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to