Vincent, I'll set this up today @ work, but I think that the problem is 
that basedir is not being set when you call this, and hence it defaults to 
user.dir.

I'll see where/if I set up basedir in my environment and work out why it's 
defaulting the way it is.
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers



"Vincent Massol" <[EMAIL PROTECTED]>
06/24/02 03:06 AM
Please respond to "Turbine Maven Developers List"


To
"'Turbine Maven Developers List'" <[EMAIL PROTECTED]>
cc

bcc

Subject
BuildTest still failing



Hi dIon,

Could you please make the following use case work WRT to BuildTest.java
(I've tried quickly but I don't know enough about the code to do it
quickly) :


* windows OS
* Nothing in user.home
* A build.properties in jakarta-turbine-maven that has 2 properties
defined :

maven.home = c:/apps/maven
lib.repo = c:/apps/repo

The first problem I solved locally was to change the order in which
properties are loaded in Build.java (which I believe is wrong) :

        try
        {
            String userDefaults = System.getProperty("user.home") + 
                "/build.properties";
            resolver.addPropertiesFromOptionalFile(userDefaults);

            String buildDefaults = getBasedir() + "/build.properties";
            resolver.addPropertiesFromOptionalFile(buildDefaults);

            resolver.addProperties(System.getProperties());
[...]


However, this is not enough as the next problem is that I get a "
maven.jar not found in lib.repo" error from BuildTest.
testRepositories().

No wonder, as Repository.getBaseURL() returns "C:\Documents and
Settings\Vincent Massol" and thus maven.jar is looked for in "
C:\Documents and Settings\Vincent Massol\maven.jar" !

It seems there is a bad assumption in the test case or somewhere else
that the maven repository is always in user.home ...

Thanks
-Vincent


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to