You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ma...@icw.de on 2007/01/25 13:39:11 UTC
[m2] antrun plugin line.separator conat
Hello,
I use the antrun plugin to do some concatenation. I want to add some text
comments to a SQL file and want an extra linebreak at its end, so I tried:
<plugin>
<groupId>org.apache.maven.plugins</groupId
>
<artifactId>maven-antrun-plugin</
artifactId>
<executions>
<execution>
<phase>generate-resources
</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- merge
all SQL fragements -->
<concat
destfile="src/main/database/setup_full.sql" append="no">-- The full
database file${line.separator}</concat>
<concat
destfile="src/main/database/setup_full.sql" append="yes" fixlastline="yes
">
<
filelist dir="src/main/database" files="schema.sql"/>
<
fileset dir="${basedir}/target/module-database-artifacts">
<include name="**/core-setup.sql"/>
</
fileset>
<
filelist dir="src/main/database" files="core-setup.sql"/>
<
filelist dir="src/main/database" files="${cm.env.db.type}-setup.sql"/>
</concat>
<concat
destfile="src/main/database/setup_full.sql" append="true" fixlastline="yes
">commit;${line.separator}</concat>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
but the line separators via ${line.separator} do not appear. Does anyone
know why?
Thanks,
Maik