You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Максименко <tw...@privat-online.net> on 2004/06/28 14:08:37 UTC

config files dependencies

Hi!

I need some advice. I need to copy config file from one subproect to another. I know one way to solve this problem. I can spesify this cofig files as resourses in one subproject and spesify the second subproject as being dependent from the first one.

But I have two problems: 

1. This config files have to be unjared. (P6SpyDriver wants its config file - spy.properties - not to be in jar)

2. To test the second subprojct I need to use testing version of the config files from the first one. 

I'm going to copy config files and their testing versions from the first subproject to the second one:


<maven:reactor

basedir="${basedir}/.."

includes="firstProject/project.xml"

goals="test:test-resources"

postProcessing="true"

/>

<ant:copy todir="${maven.test.dest}">

<fileset dir="${reactorProjects.get(0).context.getVariable('maven.test.dest')}">

<include name=spy.properties"/>

<include name="OJB*.*"/>

</fileset>

<ant:copy>


<>Would it be the right desision?

-- 

Maksimenko Alexander

Softwarium, www.softwarium.net