You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2005/05/08 00:54:58 UTC

packaging lenya classes as JAR

i think we should modify our build slightly to combine all lenya classes 
into a lenya-version.jar, just like cocoon does. this would make it 
easier to expose lenya as an artifact for third party applications (1 
jar instead of dozens of class files)

the cocoon build does this:

   <!-- package the core -->
   <target name="package-core" depends="compile-core, block-roles">
     <jar jarfile="${build}/${name}.jar" manifest="${java}/Manifest.mf" 
index="true">
       <fileset dir="${build.dest}">
          <exclude name="**/Manifest.mf"/>
       </fileset>
     </jar>
     <!-- optionally add source files to the core jar -->
     <if>
       <istrue value="${include.sources-in-jars}"/>
       <then>
         <jar jarfile="${build}/${name}.jar" update="yes">
           <fileset dir="${java}">
             <include name="**/*.java"/>
           </fileset>
         </jar>
       </then>
     </if>
     <if>
       <istrue value="${include.sources-jars}"/>
       <then>
         <jar jarfile="${build}/${name}.src.jar">
           <fileset dir="${java}">
             <include name="**/*.java"/>
           </fileset>
         </jar>
       </then>
     </if>
   </target>

comments?

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


Re: packaging lenya classes as JAR

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
J. Wolfgang Kaltz wrote:
> Gregor J. Rothfuss schrieb:
> 
>> i think we should modify our build slightly to combine all lenya 
>> classes into a lenya-version.jar, just like cocoon does. this would 
>> make it easier to expose lenya as an artifact for third party 
>> applications (1 jar instead of dozens of class files)
>>
> 
> +1
> (I can't see any disadvantages to jarring the files)

http://issues.apache.org/bugzilla/show_bug.cgi?id=35223

i think this dovetails with andreas' ideas about build modularization.

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


Re: packaging lenya classes as JAR

Posted by "J. Wolfgang Kaltz" <jw...@apache.org>.
Gregor J. Rothfuss schrieb:
> i think we should modify our build slightly to combine all lenya classes 
> into a lenya-version.jar, just like cocoon does. this would make it 
> easier to expose lenya as an artifact for third party applications (1 
> jar instead of dozens of class files)
> 

+1
(I can't see any disadvantages to jarring the files)


--
Wolfgang

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