maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Polsakiewicz <fi...@polsa.de>
Subject [SOLVED] WAR-Plugin include property files
Date Mon, 31 Jan 2005 21:31:43 GMT
Just solved the Problem. Adding the following "cheat" does the job

  <preGoal name="war:war-resources">
      <ant:mkdir dir="${maven.build.dir}/classes" />
      <ant:copy toDir="${maven.build.dir}/classes">
          <ant:fileSet dir="main/src/java">
              <ant:include name="**/*.properties" />
          </ant:fileSet>
      </ant:copy>
  </preGoal>

Filip

Filip Polsakiewicz schrieb:

> Thanks. But this didn't work. I remember from some ant-times that I 
> needed to copy the resource files from the src.dir to the classes-dir 
> before creating the war. I just don't know how to do this in maven.
>
> Filip
>
>
> Martien Huysmans schrieb:
>
>> Filip Polsakiewicz wrote:
>>
>>> Hi all,
>>> I'm having trouble using the war plugin. How can I tell the plugin 
>>> to include property files from src/java in the war?
>>>
>>> Any help would be appreciated.
>>>
>>> Thanks Filip
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>> Hi Filip
>>
>> I have done somthing similar by including the following in the 
>> project.xml.
>> This might help.
>>
>>  <build>            <resources>
>>      <resource>
>>        <directory>${basedir}/src/conf</directory>
>>        <includes>
>>          <include>*.properties</include>
>>        </includes>
>>      </resource>
>>    </resources>
>>  </build>
>>
>> Regards Martien
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message