rebels_mascot wrote:
Hey, I'm very confused as how to change from using:
<ant:filter token="s_sql" value="${dev.db.s_sql}" /> in maven 1 to it's
eqivelent in maven 2? Should this be included in <resources>?

You probably want to change the token in the resource file to match the property name. Based on what you posted above, you would change @s_sql@ to ${dev.db.s_sql} in the resource file. Maven 2 also supports '@' token delimiters, if you prefer those (but try ${} if @@ isn't working for you -- they don't behave precisely that same way).

This page shows how to set up filtering:
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?

dev.db.s_sql is delared in the "build.properties" in the user home folder.
Do I know declare dev.db.s_sql in the settings.xml and if so, where?

Yes, you most likely want it in each developer's settings.xml file. (As an alternative, you could put a default value in your pom.xml, that could be optionally overridden in settings.xml.) Here's a sample of how you might declare a profile with this variable in settings.xml, and then set that profile to be active all the time:

<settings>
  <profiles>
    <profile>
      <id>yourapp</id>
      <properties>
        <dev.db.s_sql>somevalue</dev.db.s_sql>
      </properties>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>yourapp</activeProfile>
  </activeProfiles>
</settings>


Or should I be using antrun?

You don't need antrun for normal filtering.

-Max

--
View this message in context: 
http://www.nabble.com/-M2--Ant-filer-task-t1817822.html#a4955769
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to