How to write to /src/main/resources? [message #25796] |
Fri, 08 May 2009 20:08 |
Eclipse User |
|
|
|
Originally posted by: asd.asd.com
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?
|
|
|
Re: How to write to /src/main/resources? [message #25844 is a reply to message #25796] |
Sat, 09 May 2009 04:10 |
Eclipse User |
|
|
|
Originally posted by: igor.ifedorenko.com
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?
|
|
|
Re: How to write to /src/main/resources? [message #25885 is a reply to message #25844] |
Sat, 09 May 2009 10:02 |
Eclipse User |
|
|
|
Originally posted by: asd.asd.com
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@ifedorenko.com> wrote in message
news:gu2vo0$uhk$1@build.eclipse.org...
> 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?
|
|
|
Re: How to write to /src/main/resources? [message #26175 is a reply to message #25885] |
Mon, 11 May 2009 17:18 |
Eclipse User |
|
|
|
Originally posted by: igor.ifedorenko.com
I am not 100% sure, but it looks like you are mixing build and runtime
environments. Normally, maven project layout (i.e. src/main/resources
and the rest), are not present at runtime and location of temporary
files really depends on your application logic.
--
Regards,
Igor
JS wrote:
> 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@ifedorenko.com> wrote in message
> news:gu2vo0$uhk$1@build.eclipse.org...
>> 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?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02200 seconds