Use ${property.name} instead of @property.name@

Example:

<properties>

                     <property
 name="mpd_datasource">${MPD_ORA_DS}</property>

                     <property
 name="novella_datasource">${NOVL_ORA_DS}</property>

                     <property
 name="pepl_datasource">${PEPL_ORA_DS}</property>

                     <property
 name="erights_datasource">${ERIGHTS_ORA_DS}</property>

                 </properties>

Greetings

        Ralf


Shukla, Sanjay wrote:
I have a resource directory with numerous files. Some of type .vm and a
few .xml.

Maven 2 resource plugin does not seem to do the substitutions for the
xml resource files.

Anyone face this issue ?

My resource filtering snippet

    <build>

    <filters>

      <filter>src/main/filters/form_element_names.properties</filter>

      <filter>src/main/filters/validation_errors.properties</filter>

      <filter>src/main/filters/dev1Stage.properties</filter>

    </filters>

    <resources>

      <resource>

        <directory>src/main/resources</directory>

      <filtering>true</filtering>

      </resource>

    </resources>

  </build>

Snippet from properties file

#

# Database connection configuration properties

#

MPD_ORA_DS=jdbc/MPD_ORA

NOVL_ORA_DS=jdbc/NOVL_ORA

PEPL_ORA_DS=jdbc/PEPO_ORA

ERIGHTS_ORA_DS=jdbc/ERIGHTS_ORA

Snippet from xml

    <properties>

                    <property
name="mpd_datasource">@MPD_ORA_DS@</property>

                    <property
name="novella_datasource">@NOVL_ORA_DS@</property>

                    <property
name="pepl_datasource">@PEPL_ORA_DS@</property>

                    <property
name="erights_datasource">@ERIGHTS_ORA_DS@</property>

                </properties>

Thanks,

Sanjay Shukla,

HPI Product Engineering, 2 Penn Plaza, NY.

212 904 3629 Office

732 692 4419 Cell



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

Reply via email to