Re: Lame newbie question - how to set target directory for the build?

2003-06-20 Thread David Walend
At 11:15 AM 6/19/2003 -0400, you wrote:

That's why you need to use ${basedir} in your file references. As far as
I know there is no consistent way in Java to set the current working
directory.
Jason,

Yes! That's exactly what I'm trying to do. How do I redefine what's 
currently defined as "./target" ? I need to know the name of the property 
or tag or whatever that I need to change in project.xml (or where to change 
it if it's somewhere else), to make it be "${basedir}/target" .

Thanks,

Dave





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


Re: Lame newbie question - how to set target directory for the build?

2003-06-19 Thread David Walend
Vipul,

Thanks, but I figured it out. It's not quite as good as ant's -find option, but

maven jar --find project.xml

puts things in the right place. (Odd that maven is still able to search up 
the source tree to find some project.xml file on it's own, but doesn't 
reset the base directory. Is that a bug?)

Thanks again,

Dave

At 08:56 AM 6/19/2003 +0100, you wrote:

Dave,

You need to execute all goals in the directory that your project.xml lives !

Regards,

Vipul
- Original Message -
From: "David Walend" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 8:58 PM
Subject: Lame newbie question - how to set target directory for the build?
> When I run "maven jar" from down inside my source code directory, the
> target directory (containing all the build products) winds up down inside
> my source code directory, instead of up next to my src directory.
> http://maven.apache.org/reference/dirlayout.html implied that target would
> be at the top, next to src.
>
> How can I set the target directory from a property to be ${basedir}/target
> insead of /current dir/target?
>
> Thanks,
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Lame newbie question - how to set target directory for the build?

2003-06-18 Thread David Walend
When I run "maven jar" from down inside my source code directory, the 
target directory (containing all the build products) winds up down inside 
my source code directory, instead of up next to my src directory. 
http://maven.apache.org/reference/dirlayout.html implied that target would 
be at the top, next to src.

How can I set the target directory from a property to be ${basedir}/target 
insead of /current dir/target?

Thanks,

Dave

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


validating .xml vs. .xsd in Maven

2003-06-12 Thread David Walend
I'm at the very beginning of a project that will rely heavily on .xml 
documents defined by our in-house .xsd files.

I need to validate the .xsd files, then validate the .xml files, then use 
JAXB to build out classes for the .xsd files, build our software, then use 
JUnit to read in the .xml files for tests. I'd like to know that the .xsd 
and .xml files are OK before trying the other steps.

What's the best way to do that in maven? I'm guessing something is 
available, since maven validates the project.xml file, but haven't found an 
obvious description of it. (Can I just put .xsd and .xml files into my 
source directory and have everything validated?)

Thanks,

Dave



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