This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178423

Summary: Build script bails with "Cycle Detected" when executing multiple targets
Product: projects Reporter: jesterfred <jesterfred>
Component: Ant ProjectAssignee: Milan Kubec <mkubec>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jglick
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description jesterfred 2009-12-10 06:14:39 UTC
Create an ant based project then try this from the command line:

ant compile test

It will fail with

.../build-impl.xml:381: Cycle detected: ProjectName was already built

You can, however, run the targets in separate invocations thusly:

ant compile
ant test

I use Hudson to maintain all my projects.  This change in behavior broke my Hudson configurations and requires that I invoke each ant target in a separate invocation.  This slows things down dramatically.
Comment 1 Jesse Glick 2009-12-10 06:31:07 UTC

*** This bug has been marked as a duplicate of bug 174799 ***