You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mirko Novakovic <mi...@provinzial.com> on 2003/07/22 15:08:55 UTC
Common Directory Layout
Hello,
according to description on maven.apache.org source files should be
played into subdirectories under /src and the test-cases under /src/test.
If I have the following structur that fullfills the rewuiremts of the
common directory structure:
/src/java_dir_1
/src/java_dir_2
/src/test
how can I tell the POM where my sources are?
if I define
<sourceDirectory>src</sourceDirectory>
as the source directory, than test treated like "normal" source and the
eclipse .classpath file is not generated correctly.
I've not found a possibility to define two sourceDirectories like
<sourceDirectory>src/java_dir_1</sourceDirectory>
<sourceDirectory>src/java_dir_2</sourceDirectory>
Thank you.
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Common Directory Layout
Posted by di...@multitask.com.au.
"Mirko Novakovic" <mi...@provinzial.com> wrote on 22/07/2003
11:22:19 PM:
> The documentation should be changed or clarified:
> "Other projects may separate the code according to function (src/share,
> src/test, src/rttest). It is highly recommended that sub-directories be
> used under src/."
The easiest way to get the documentation changed or clarified is to submit
a patch to the docs in jira.codehaus.org.
Otherwise, we'll forget or assume it's not that important unless it keeps
happening.
>
> I will switch to one directory for java sources, don't like
workarounds:-)
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Re: Common Directory Layout
Posted by Mirko Novakovic <mi...@provinzial.com>.
The documentation should be changed or clarified:
"Other projects may separate the code according to function (src/share,
src/test, src/rttest). It is highly recommended that sub-directories be
used under src/."
I will switch to one directory for java sources, don't like workarounds:-)
Jason van Zyl wrote:
>On Tue, 2003-07-22 at 09:08, Mirko Novakovic wrote:
>
>
>>Hello,
>>
>>according to description on maven.apache.org source files should be
>>played into subdirectories under /src and the test-cases under /src/test.
>>
>>If I have the following structur that fullfills the rewuiremts of the
>>common directory structure:
>>
>>/src/java_dir_1
>>/src/java_dir_2
>>/src/test
>>
>>how can I tell the POM where my sources are?
>>
>>
>
>You can only have one location for your java application sources. This
>won't change it's been discussed many, many times. Go look in the
>archive if you want to find the reasons and some workarounds if you're
>desperate for multiple application source directories.
>
>
>
>>if I define
>><sourceDirectory>src</sourceDirectory>
>>as the source directory, than test treated like "normal" source and the
>>eclipse .classpath file is not generated correctly.
>>
>>I've not found a possibility to define two sourceDirectories like
>>
>> <sourceDirectory>src/java_dir_1</sourceDirectory>
>> <sourceDirectory>src/java_dir_2</sourceDirectory>
>>
>>
>>Thank you.
>>
>>Mirko
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Common Directory Layout
Posted by Jason van Zyl <ja...@zenplex.com>.
On Tue, 2003-07-22 at 09:08, Mirko Novakovic wrote:
> Hello,
>
> according to description on maven.apache.org source files should be
> played into subdirectories under /src and the test-cases under /src/test.
>
> If I have the following structur that fullfills the rewuiremts of the
> common directory structure:
>
> /src/java_dir_1
> /src/java_dir_2
> /src/test
>
> how can I tell the POM where my sources are?
You can only have one location for your java application sources. This
won't change it's been discussed many, many times. Go look in the
archive if you want to find the reasons and some workarounds if you're
desperate for multiple application source directories.
> if I define
> <sourceDirectory>src</sourceDirectory>
> as the source directory, than test treated like "normal" source and the
> eclipse .classpath file is not generated correctly.
>
> I've not found a possibility to define two sourceDirectories like
>
> <sourceDirectory>src/java_dir_1</sourceDirectory>
> <sourceDirectory>src/java_dir_2</sourceDirectory>
>
>
> Thank you.
>
> Mirko
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org