You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ilango_g <il...@yahoo.com> on 2008/11/11 17:48:07 UTC

BUILD FAILED Target "dist" does not exist in the project "....

Hi
I have written and used an Ant build.xml from Eclipse Europa to create and
deploy a WAR file into JBoss 5 CR 2.
As far as I know there are no references to the target "dist" in my
build.xml. So I am confused why it is complaining about "dist". 
The output is below:

Buildfile: C:\Users\ilango\workspace\CustomService3\build.xml
init:
    [mkdir] Created dir: C:\Users\ilango\workspace\CustomService3\build
    [mkdir] Created dir: C:\Users\ilango\workspace\CustomService3\dist
    [mkdir] Created dir:
C:\Users\ilango\workspace\CustomService3\build\WEB-INF
    [mkdir] Created dir:
C:\Users\ilango\workspace\CustomService3\build\WEB-INF\classes
    [mkdir] Created dir:
C:\Users\ilango\workspace\CustomService3\build\WEB-INF\lib
init:
compile:
    [javac] Compiling 1 source file to
C:\Users\ilango\workspace\CustomService3\build\WEB-INF\classes
     [copy] Copying 1 file to
C:\Users\ilango\workspace\CustomService3\build\WEB-INF
     [copy] Copying 1 file to
C:\Users\ilango\workspace\CustomService3\build\WEB-INF
     [copy] Copying 2 files to
C:\Users\ilango\workspace\CustomService3\build\WEB-INF\lib
init:
compile:
deploy:
     [copy] Copying 5 files to C:\Users\ilango\workspace\CustomService3\dist
      [war] Building war:
C:\Users\ilango\workspace\CustomService3\dist\CustomService3.war
     [move] Moving 1 file to C:\JBoss5\jboss-5.0.0.CR2\server\default\deploy

BUILD FAILED
Target "dist" does not exist in the project "CustomService3". 

Total time: 1 second
-- 
View this message in context: http://www.nabble.com/BUILD-FAILED-Target-%22dist%22-does-not-exist-in-the-project-%22....-tp20443507p20443507.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: BUILD FAILED Target "dist" does not exist in the project "....

Posted by Neil Tingley <ne...@thump.org>.
What have you set for the default target in the build file ?

2008/11/11 Mark Salter <ma...@talktalk.net>

> ilango_g wrote:
> > Yes, I am. Actually, I do not see a "dist" in the targets  tab.
> I wonder where else it is appearing then.  Is your build.xml very long,
> can you post it somewhere and post a link to it? Perhaps on www.cl1p.net
> or similar?
>
> > Is it possible to simply run Ant from the Eclipse for the same build.xml?
> You can configure an ant builder within Eclipse which is what you (or
> someone) has already done.  To keep this on topic (of ant) perhaps
> showing your build.xml will expose the answer?
>
> --
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: BUILD FAILED Target "dist" does not exist in the project "....

Posted by Mark Salter <ma...@talktalk.net>.
ilango_g wrote:
> Yes, I am. Actually, I do not see a "dist" in the targets  tab. 
I wonder where else it is appearing then.  Is your build.xml very long,
can you post it somewhere and post a link to it? Perhaps on www.cl1p.net
or similar?

> Is it possible to simply run Ant from the Eclipse for the same build.xml?
You can configure an ant builder within Eclipse which is what you (or
someone) has already done.  To keep this on topic (of ant) perhaps
showing your build.xml will expose the answer?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: BUILD FAILED Target "dist" does not exist in the project "....

Posted by ilango_g <il...@yahoo.com>.
Yes, I am. Actually, I do not see a "dist" in the targets  tab. 
Is it possible to simply run Ant from the Eclipse for the same build.xml?



Mark Salter-5 wrote:
> 
> ilango_g wrote:
>> Hi
>> I have written and used an Ant build.xml from Eclipse Europa to create
>> and
>> deploy a WAR file into JBoss 5 CR 2.
>> As far as I know there are no references to the target "dist" in my
>> build.xml. So I am confused why it is complaining about "dist". 
> So a find for text 'dist' within build.xml has no hits - apart from the
> mkdir and copy targets?
> 
> Are you running the ant build from within Eclipse?  If so, Eclipse
> allows you to specify targets to run on an ant build, is a target of
> 'dist' specified on the 'Targets' tab within your projects launch
> configuration?
> 
> -- 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/BUILD-FAILED-Target-%22dist%22-does-not-exist-in-the-project-%22....-tp20443507p20444969.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: BUILD FAILED Target "dist" does not exist in the project "....

Posted by Mark Salter <ma...@talktalk.net>.
ilango_g wrote:
> Hi
> I have written and used an Ant build.xml from Eclipse Europa to create and
> deploy a WAR file into JBoss 5 CR 2.
> As far as I know there are no references to the target "dist" in my
> build.xml. So I am confused why it is complaining about "dist". 
So a find for text 'dist' within build.xml has no hits - apart from the
mkdir and copy targets?

Are you running the ant build from within Eclipse?  If so, Eclipse
allows you to specify targets to run on an ant build, is a target of
'dist' specified on the 'Targets' tab within your projects launch
configuration?

-- 
Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org