Hi Kent,
thats pretty simple in your POM add the following configuration:
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>
if as suggested by Andrew you place your properties file in resources folder
than your configuration would look like this:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>
cheers,
Javed
On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
Why are you placing them in the same directory ?
You should follow standard directory structure
Src/main/java/ com/... For your java files and
Src/main/resources/ com/... For your properties files
-----Original Message-----
From: Kent Tong [mailto:[EMAIL PROTECTED]
Sent: 14 June 2006 02:31
To: [email protected]
Subject: how to make sure Foo.properties file copied to the same
directory as Foo.class
Hi,
My app contains a Foo.java file and a Foo.properties file in the same
directory. I need to make sure the Foo.properties are "compiled"
(copied) into the same directory as Foo.class, i.e., target/classes. How
to do that? Thanks!
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified Manager of IT Dept,
CPTTM Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag
& RedHat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]