Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27056 invoked from network); 6 Jun 2008 16:03:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 16:03:07 -0000 Received: (qmail 45789 invoked by uid 500); 6 Jun 2008 16:02:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 45716 invoked by uid 500); 6 Jun 2008 16:02:57 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 45692 invoked by uid 99); 6 Jun 2008 16:02:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 09:02:57 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of niranjan8712@gmail.com designates 209.85.198.250 as permitted sender) Received: from [209.85.198.250] (HELO rv-out-0708.google.com) (209.85.198.250) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 16:02:08 +0000 Received: by rv-out-0708.google.com with SMTP id b17so1179354rvf.40 for ; Fri, 06 Jun 2008 09:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=RKUZLz2nr+Cn0aS8m4NvKcqV+iOoS56eQ0rCr7l+FdM=; b=dIqmc0t0r5SGR35xggiuAmK6wFcdROQ82uREWJPkmh3dAo8/ayWHui9xF8IbMcMcJa 1IJbtFrWIm9qnu2rcFNNE+93eEF/o1Jd08jdLlXteizJzmdUQPgQPqjiS432N/jcWHvE sKkM1nErnB5AH14XlnHrCm5/zQvkqDzjeFsJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=Kqf7PpocVHJ15KI7sF4OCUtURKtRbKv7aU0b/gHU6FiTjF6g64svG/JZZdp/jHaKW7 8caXfSwT/l+JzwTYajqSDD7292ypwLrG90xGaKuxriuNNjqVLqyfwhsYtRa8P+wHHWoR aB+m6CTJU7BAz+5WLd3Pwr6gu2fDwL/ycOsJg= Received: by 10.141.210.21 with SMTP id m21mr180045rvq.23.1212768145578; Fri, 06 Jun 2008 09:02:25 -0700 (PDT) Received: by 10.141.151.17 with HTTP; Fri, 6 Jun 2008 09:02:25 -0700 (PDT) Message-ID: Date: Fri, 6 Jun 2008 18:02:25 +0200 From: "Niranjan Deshpande" To: "Maven Users List" , user@ant.apache.org Subject: Re: need help in ant's javadoc task (from maven) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10186_25258603.1212768145579" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10186_25258603.1212768145579 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I got this when I ran your debug script. Error executing ant tasks _________________________________________________________________________________________ Embedded error: The following error occurred while executing this line: /home/apli/APPWeb/src/main/build/generate/generate-appcodes.xml:37: Could not create task or type of type: echoproperties. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'echoproperties'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using . - You are attempting to use a task defined using or but have spelt wrong or not defined it at the point of use Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. _________________________________________________________________________________________ my xml file is in src/main/build/generate folder and the dependency jars are in folder src/main/build/lib and src/main/webapp/WEB-INF/lib I am using the to point to these jars and and the tools.classpath is used by the ant's doclet task fpr the "path" attribute. What might be wrong? On 6/6/08, Sean Hennessy wrote: > > > > > > failonerror="false" /> > > > > > > > > > -----Original Message----- > From: Niranjan Deshpande [mailto:niranjan8712@gmail.com] > Sent: Friday, June 06, 2008 5:54 AM > To: user@ant.apache.org; Maven Users List > Subject: need help in ant's javadoc task (from maven) > > > I am trying to generate a .properties file using javadocs in a java source > file, and i am using ant's task to do this. > > but i am getting this error when i run the antrun plugin > > generate.appcodes: > [javadoc] Generating Javadoc > [javadoc] Javadoc execution > [javadoc] javadoc: Cannot find doclet class > com.company.app.util.doclet.AppCodesDoclet > [javadoc] 1 error > > Please help. Also can anyone tell me what the and > elements are for? How are the paths relative to? > > My ant build file is: > > > > > > > > > > > > > > > > sourcefiles="src/main/com/company/app/shared/security/AppCodes.java" > failonerror="yes"> > > path="${tools.classpath}"> > value="../src/main/resources/appcodes.properties" /> > > > > > > > > todir="target/WEB-INF/classes/resources" /> > > > > > > > > > -- > Regards, > Niranjan Deshpande > > "Shut yourself from the world and create the reality you want" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > -- Regards, Niranjan Deshpande "Shut yourself from the world and create the reality you want" ------=_Part_10186_25258603.1212768145579--