Re: inter project dependencies

Nick Chalko <[email protected]>
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Unico Hommes wrote:

>  
>
>Well, I would like to help out but Centipede isn't directly clear to me. I checked out krysalis-ant-tasks and started reading CentipedeTask. One thing that is not yet clear to me is how and where the compilation classpath is being set up. java-cent is refering to ${project.name}.classpath and I did find a path declaration bearing that name in ${project.name}.getdepend.xml but is it correct?:
>
>	<path id="ecm-catalina.classpath">
>		<path refid="lib.classpath"/>
>		<fileset dir=".">
>			<include name="${lib.dir}/**/*.jar"/>
>		</fileset>
>	</path>
>  
>

The RuperDepend task creates lib.classpath

<ruperDepend basename="lib">
<depend project="poi" version="1.8.0-dev-20020919" export="true" 
repository="maven"/>
<depend project="documentum-utils" version="0.3.22-dev-20030305" 
export="true" repository="local"/>
<depend project="chalktools" version="0.4.2" export="true" 
repository="chalktools"/>
<depend project="chalk-batch" version="0.2.7-dev" export="true" 
repository="chalktools"/>
<depend project="jaf" version="1.0.2" export="true" repository="local"/>
<depend project="javamail" version="1.3" export="true" repository="local"/>
<depend project="commons-cli" version="" export="true" repository="maven"/>
<depend project="log4j" version="1.2.4" export="true" repository="maven"/>
<depend project="dfc" version="4.2" export="" repository="local"/>
<depend project="xerces" version="2.2.1" export="" repository="maven"/>
</ruperDepend>


I think we can modify getdepend.xml
to create one getdpend.xml for all the projects and have

	<path id="ecm-catalina.classpath">
		<path refid="lib.classpath"/>
		<path refid="subtask.classpath"/>
		<fileset dir=".">
			<include name="${lib.dir}/**/*.jar"/>
		</fileset>
	</path>


The fileset for lib is a hack becuse Ruper is not  finding some 
dependencies.



-- 
Nick Chalko                                         Show me the code.
                          Centipede
  Ant + autodownloadable build plugins + needed jars autodownload.
              http://krysalis.org/centipede
---------------------------------------------------------------------




-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.