ProjectJunitMigrationToNB72

Revision as of 10:22, 14 September 2012 by Jungi (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

How to upgrade NetBeans project to NetBeans 7.2

Some time after releasing NetBeans 7.2, users found out an issue 215967 preventing them to smoothly upgrade their projects with overridden junit macro definition from pre-7.2 releases to NetBeans 7.2.


Problem description

After opening a project in NetBeans 7.2 and running ant test command, project build fails with:

BUILD FAILED
.../nbproject/build-impl.xml:1439:
The following error occurred while executing this line:
.../nbproject/build-impl.xml:525:
The following error occurred while executing this line:
.../nbproject/build-impl.xml:498:
unsupported element customize

Solution

add following to customized junit macro definition:

<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<customize/>
Not logged in. Log in, Register

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