[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.m2e] Re: How to write to /src/main/resources?

I have an application in a maven module A that needs to write a file to a tmp folder during runtime. But the application is called from another module B which means that:

System.getProperty("user.dir")

refers to module B's location. I have created the tmp folder in:

/src/main/resources/tmp

under module A (it should not be placed in module B's resources). But how do I get that path?



does not
"Igor Fedorenko" <igor@xxxxxxxxxxxxxx> wrote in message news:gu2vo0$uhk$1@xxxxxxxxxxxxxxxxxxxx
Can you explain what you are trying to achieve?

--
Regards,
Igor


JS wrote:
I have installed maven in eclipse on Vista 32.

I have made a tmp folder in /src/main/resources:

/src/main/resources/tmp

Now I want to write some files to this folder, but how do I get the full path?