Hi,
you need to define the task first. Take a look at the checkstyle plugin, where the
task is defined as follows:
<ant:taskdef
name="checkstyle"
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
</ant:taskdef>
<attainGoal name="checkstyle:determine-properties" />
<!-- Create the directory for the checkstyle cache in case it doesn't exist
already -->
<ant:dirname property="maven.checkstyle.cache.dir"
file="${maven.checkstyle.cache.file}"/>
<ant:mkdir dir="${maven.checkstyle.cache.dir}"/>
<ant:echo>Using ${checkstyleProperties} for checkstyle ...</ant:echo>
<ant:checkstyle
properties="${checkstyleProperties}"
failOnViolation="${maven.checkstyle.fail.on.violation}"
cacheFile="${maven.checkstyle.cache.file}">
<ant:fileset
dir="${pom.build.sourceDirectory}"
includes="${maven.checkstyle.includes}"
excludes="${maven.checkstyle.excludes}"/>
<ant:formatter type="xml"
toFile="${maven.build.dir}/checkstyle-raw-report.xml"/>
<j:choose>
<j:when test="${maven.checkstyle.usefile}">
<ant:formatter type="plain"
toFile="${maven.build.dir}/checkstyle-raw-report.txt"/>
</j:when>
<j:otherwise>
<ant:formatter type="plain"/>
</j:otherwise>
</j:choose>
</ant:checkstyle>
Cheers,
-Mo.
"Maven Users List" <[EMAIL PROTECTED]> schrieb am 15.09.03 16:41:40:
>
> Hello.
>
> I have the following goal defined in maven.xml, but
> when I execute it, nothing happens.
>
>
> <goal name="upload">
> <ant:ftp server="www0" port="21"
> userid="${ftp.user}" password="${ftp.pw}"
> verbose="true">
> <fileset dir="${maven.build.dir}">
> <include name="${maven.war.final.name}"/>
> </fileset>
> </ant:ftp>
> </goal>
>
>
> I also have ant-optional-1.5.3-1.jar in my
> MAVEN_HOME/lib directory.
>
> I'm using Maven 1.0-Beta10.
>
> Thank you.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
______________________________________________________________________________
Bestes Testergebnis: Stiftung Warentest Doppelsieg fur WEB.DE FreeMail
und WEB.DE Club. Nur fuer unsere Nutzer! http://f.web.de/?mc=021182
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]