From user-return-72528-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Sep 13 19:07:36 2012 Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 64991D81E for ; Thu, 13 Sep 2012 19:07:36 +0000 (UTC) Received: (qmail 91994 invoked by uid 500); 13 Sep 2012 19:07:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 91935 invoked by uid 500); 13 Sep 2012 19:07:35 -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 91927 invoked by uid 99); 13 Sep 2012 19:07:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 19:07:35 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sfloess@nc.rr.com designates 75.180.132.120 as permitted sender) Received: from [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 19:07:29 +0000 X-Authority-Analysis: v=2.0 cv=QrvcLCOd c=1 sm=0 a=+VCM/581DKbZ18ecjsVGYg==:17 a=fG2ehfqyZ4MA:10 a=9LPpxwRfKWcA:10 a=CYiYmntBkC0A:10 a=05ChyHeVI94A:10 a=5AOZzp_gxqcA:10 a=kj9zAlcOel0A:10 a=ayC55rCoAAAA:8 a=ECfUrA18Z0kA:10 a=FP58Ms26AAAA:8 a=NEAV23lmAAAA:8 a=p7ojKX_J6EVAhuzzLdoA:9 a=CjuIK1q_8ugA:10 a=0HmR9pgOMftZq8nG:21 a=qPZpgcTfykhZaiwg:21 a=+VCM/581DKbZ18ecjsVGYg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 69.134.106.51 Received: from [69.134.106.51] ([69.134.106.51:54249] helo=flossware.homelinux.org) by cdptpa-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id C5/79-28917-CDE22505; Thu, 13 Sep 2012 19:07:09 +0000 Received: from adminserver (adminserver [192.168.168.253]) by flossware.homelinux.org (Postfix) with ESMTP id D8C2E14029D7 for ; Thu, 13 Sep 2012 15:07:05 -0400 (EDT) Date: Thu, 13 Sep 2012 15:07:05 -0400 (EDT) From: "Scot P. Floess" X-X-Sender: sfloess@adminserver To: Ant Users List Subject: Re: Apache ANT execution error - Problem: failed to create task or type if In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org Looks like you are missing ant-contrib if... Surprised there isn't a namespace on the "if" task... Can you send out the contents of C:\Documents and Settings\raora\.ant\build.xml ? Line 10 may be sufficient - I'm curious how that line is defining the ant contrib tasks... On Thu, 13 Sep 2012, Rao, Raghavendra Kunjoor wrote: > Hi, > I am new to ANT and I am facing a few issues when executing a build.xml > file. I request your help in resolving this issue. > > I have set the environment variables - ANT_HOME, JAVA_HOME, PATH, > ANT_ARGS, ANT_OPTS. > > When I execute the build.xml file, below is the output in the console. > > ************************************************************************ > ****************** > Buildfile: > C:\projects\ADAS-INTRAV25A\implementation\build_config\build.xml > [taskdef] Could not load definitions from resource > net/sf/antcontrib/antcontrib.properties. It could not be found. > [get] Getting: :8080/build.xml > [get] To: C:\Documents and Settings\raora\.ant\build.xml > [get] Not modified - so not downloaded > [loadfile] > C:\BEA1034\oepe_11gR1PS3\plugins\org.apache.ant_1.7.1.v20100518-1145\etc > \tiaa.version.txt doesn't exist > > BUILD FAILED > C:\projects\ADAS-INTRAV25A\implementation\build_config\build.xml:5: The > following error occurred while executing this line: > C:\Documents and Settings\raora\.ant\build.xml:10: Problem: failed to > create task or type if > Cause: The name is undefined. > Action: Check the spelling. > Action: Check that any custom tasks/types have been declared. > Action: Check that any / declarations have taken > place. > > > Total time: 110 milliseconds > ************************************************************************ > ***** > > When I execute the build file > "C:\projects\ADAS-INTRAV25A\implementation\build_config\build.xml", it > has a logic to import another build file: "C:\Documents and > Settings\raora\.ant\build.xml". I personally don't know the reason > behind this as it is an existing code base. > > I read in multiple posts online which suggested downloading the > antcontrib.jar file and placing it in the ANT lib folder. I verified it > and it is already present. So I am not sure how to proceed here. Below > is the content of > C:\projects\ADAS-INTRAV25A\implementation\build_config\build.xml > > Please let me know if you need more details. > > > > > > > > > > > > > > > > > > > > > > classname="org.apache.xmlbeans.impl.tool.XMLBean" > classpathref="app.classpath"/> > > > > > > > property="xmlbeans.gen.notRequired" > targetfile="${lib.dir}/@{jarname}.jar"> > includes="**/@{xsdfile}.xsd,**/@{xsdconfig}.xsdconfig"/> > > > > property="xmlbeans.gen.notRequired"/> > > > schema="${schema.dir}/@{xsdfile}.xsd" > > destFile="${lib.dir}/@{jarname}.jar" > > classgendir="${temp.dir}/@{xsdfile}"> > dir="${schema.dir}" includes="**/@{xsdconfig}.xsdconfig"/> > > message="@{jarname}.jar GENERATED"/> > > > name="xmlbeans.gen.notRequired" unset="true"/> > message="@{jarname}.jar UPTODATE"/> > > > > > > xsdfile="master" > xsdconfig="master"/> > xsdfile="log-work-1-3" > xsdconfig="log-work-1-3"/> > xsdfile="isv-plan-transfer-out-2-1" > xsdconfig="isv-plan-transfer-out-2-1"/> > jarname="isv-retirement-transition-benefit" > xsdfile="retirement-transition-benefit-3-1" > xsdconfig="retirement-transition-benefit-3-1"/> > xsdfile="transfer-participant-funds-3-0" > xsdconfig="transfer-participant-funds-3-0"/> > xsdfile="isv-update-message-1-0" > xsdconfig="isv-update-message-1-0"/> > xsdfile="isv-update-participant-header-1-0" > xsdconfig="isv-update-participant-header-1-0"/> > > xsdfile="generate-omni-custom-full-page-report-1-0" > > xsdconfig="generate-omni-custom-full-page-report-1-0"/> > > > > > > ************************************************************************* > This e-mail may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender immediately and then delete it. > > TIAA-CREF > ************************************************************************* > Scot P. Floess RHCT (Certificate Number 605010084735240) Chief Architect FlossWare http://sourceforge.net/projects/flossware http://flossware.sourceforge.net https://github.com/organizations/FlossWare --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org