Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
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="$
"/>
> <j:file name="$
> <library>
> <x:comment>JBuilder Library Definition File</x:comment>
> <fullname>${fileName}
</fullname>
> <class>
> <j:forEach var="lib" items="$
">
> <j:set var="libFullName" value="$
" />
> <j:set var="jarPath" value="$
/$
{lib.artifactDirectory}/$
{lib.getType()}s/$
{lib.getArtifact()}" />
> <u:replace var="jarPath" oldChar="\" newChar="/" value="$
> <path><j:expr value="[${jarPath}
]"/></path>
> </j:forEach>
> </class>
> </library>
> </j:file>
> <echo>================================</echo>
> <echo>Creating $
.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.