2015-05-28 39 views
0

我有一個模塊是使用ANT的Orignally寫入。我目前正在將其轉換爲maven。我解決了所有的依賴關係,並且它的包裝很好。ANT到maven轉換

這是事情。該模塊提供3個不同的文件夾(問題,答案,備註),並且它們全部包含3個具有相同名稱的.properties文件。我想打包模塊,它應該只包含指定fodler的文件。

我該怎麼做?

回答

0

您應該使用ant fileset

<war destfile="myapp.war" webxml="src/metadata/myapp.xml"> 
    <fileset dir="questions" includes="my.properties" /> 
    <fileset dir="answers" includes="my.properties" /> 
    <fileset dir="remarks" includes="my.properties" /> 
</war 
+0

@Deepak米塔爾是我anwwer有用嗎?如果你投票並接受有用的答案,人們會更有動力去幫助你 –