Not directly. But you can use the gmaven plugin for this type of thing.
Something like this:
            <plugin>
                <groupId>org.codehaus.groovy.maven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <version>1.0-rc-5</version>
                <executions>
                    <execution>
                        <id>setup-groovy</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                        <configuration>
                            <source>
                                project.properties["newproperty"] =
project.artifactId.substring(1);
                            </source>
                        </configuration>
                    </execution>
                </executions>
            </plugin> 

Justin

-----Original Message-----
From: Yang, Gang CTR USA [mailto:[email protected]] 
Sent: Wednesday, September 30, 2009 10:09 AM
To: [email protected]
Subject: String manipulation in POM?

Hi,

Is there a way to manipulate strings, such as extract portion of a
property content, in POM?

Thanks,
Gang

---------------------------------------------------------------------
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