avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Excalibur Build: Steps to setup a package
Date Fri, 19 Apr 2002 12:17:52 GMT
Jeff Turner wrote:
> 
> On Fri, Apr 19, 2002 at 11:10:53AM +0200, Carsten Ziegeler wrote:
> > Hi,
> > 
> > what are the steps for integrating a new package into the build system?
> > I have now finished (hopefully) the source package and want to install
> > the classes in the sourceresolve package in excalibur.
> 
> Just to confirm: you want to copy
> all/src/java/org/apache/excalibur/source to the sourceresolve project?
> 
> If so, here's the steps:
> 
> 1) Copy the files. If you want to keep the version history, this needs
> to be done in the repository directly. If you do so, make sure that any
> directories you create have the right permissions (g+w), and you 
> do 'cp -rp' to
> preserve the file ownerships. And don't ever 'rm' or 'mv' ;) 
> 
> 2) Work out the deps ('grep "import org.apache.*" src/java'). It depends
> on framework, pool, and monitor (excalibur-core).
> 
> 3) Add these jars to the project.class.path section of build.xml:
> @@ -13,6 +13,9 @@
>      <path id="project.class.path">
>          <pathelement path="${java.class.path}"/>
>          <pathelement location="${build.classes}"/>
> +        <pathelement location="${avalon-framework.jar}"/>
> +        <pathelement location="${excalibur-pool.jar}"/>
> +        <pathelement location="${excalibur-core.jar}"/>
>          <pathelement location="${checkstyle.jar}"/>
>      </path>
> 
> 4) Define default jar values in default.properties (steal the text from
> another file, eg ../event/default.properties):
> 
> @@ -12,6 +12,26 @@
>  package-version=0.99
>  year=2000-2002
>  
> +# --------------------------------------------------
> +#                REQUIRED LIBRARIES
> +# --------------------------------------------------
> +# ----- Avalon Framework, version 4.1 or later -----
> +avalon-framework.home=${basedir}/../../jakarta-avalon
> +avalon-framework.lib=${avalon-framework.home}/build/lib
> +avalon-framework.jar=${avalon-framework.lib}/avalon-framework.jar
> +
> +# ----- Excalibur Pool, version 1.0 or later -----
> +excalibur-pool.home=${basedir}/../pool/dist
> +excalibur-pool.lib=${excalibur-pool.home}
> +excalibur-pool.jar=${excalibur-pool.lib}/excalibur-pool-1.0.jar
> +
> +# ----- Excalibur Core -----
> +excalibur-core.home=${basedir}/../all
> +excalibur-core.lib=${excalibur-core.home}/build/lib
> +excalibur-core.jar=${excalibur-core.lib}/excalibur-core.jar
> +
> +# --------------------------------------------------
> +
> 
> 5) In the dependencies target, add dependency checks to ensure 
> these projects
> are built:
> 
> @@ -35,6 +38,9 @@
>  
>      <target name="dependencies" description="Check dependencies" 
> unless="skip.dependencies">
>          <ant antfile="${depchecker.prefix}/depchecker.xml" 
> target="checkCommon"/>
> +        <ant antfile="${depchecker.prefix}/depchecker.xml" 
> target="checkFramework"/>
> +        <ant antfile="${depchecker.prefix}/depchecker.xml" 
> target="checkPool"/>
> +        <ant antfile="${depchecker.prefix}/depchecker.xml" 
> target="checkCore"/>
>      </target>
> 
> 
> 6) Then type 'ant', and wait for ages while all/ is built. But 
> eventually it
> does, and it compiles.
> 
> 
> Is that what you meant? If so, I could just commit my copy now if 
> you want ;)
> 
Wow! Great!
Yes, that's exactly what I meant...so if you want to commit it, I would
be very happy - I hope I can save you some time sometime, too.

But that was exactly the same I tried here and it didn't compile
the classes in the sourceresolve directory. Perhaps I forgot one
little thing if it works for you.

Thanks
Carsten

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message