NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Problem building old project

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
TF338



Joined: 27 May 2012
Posts: 1

PostPosted: Sun May 27, 2012 11:37 am    Post subject: Problem building old project Reply with quote

I downloaded an example project but I have some problems when trying to build.

I get the following error:

Code:
C:\Users\Thomas\Documents\NetBeansProjects\CustomerApp\CustomerApp-war\nbproject\build-impl.xml:693: Problem: failed to create task or type copyfiles
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)



This is a snippet from the build-impl.xml file:


Code:
 <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
        <copyfiles files="${reference.CustomerApp-ejb.dist}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${libs.PrimeFaces2.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${file.reference.javax.ejb.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${file.reference.javax.servlet-3.0.0.v201103241009.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${file.reference.myfaces-api-1.2.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${file.reference.myfaces-api-2.0.0-alpha.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
        <copyfiles files="${file.reference.org-netbeans-modules-java-j2seproject-copylibstask.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
    </target>


My guess is that he doesn't know what ${build.web.dir} is. But where and how do I have to define that variable?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo