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 153537 - Removing a SU from a CA fails
Summary: Removing a SU from a CA fails
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 14:09 UTC by brynjargles
Modified: 2009-02-10 00:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brynjargles 2008-11-20 14:09:55 UTC
When I delete a SU from a CA I need to manually edit the build-impl.xml of the CA project.

Steps to reproduce:

1) In a CA containing at least one SU, delete a SU in the CASA editor (delete on the right-click menu)
2) Build (fails)
3) Open the nbprojects/build-impl.xml file. Delete the sections that operates on the SU that was removed
4) (Optionally) Delete the properties for the SU that was removed from nbprojects/project.properties

I can't see any reason why step 1 shouldn't be sufficient.

When I deleted a Java EE SU, what I removed from the build-impl.xml file was:

- from target with name="deps-javaee-jar"

        <ant target="dist" inheritall="false" antfile="${project.DocumentTypeComputer}/build.xml"
dir="${project.DocumentTypeComputer}"/>
        <basename property="DocumentTypeComputer.su.name" file="${project.DocumentTypeComputer}"/>
        <property name="DocumentTypeComputer.su.dir" value="${src.dir}/../jbiServiceUnits/${DocumentTypeComputer.su.name}"/>
        <unzip src="${reference.DocumentTypeComputer.dist}"
dest="${src.dir}/../jbiServiceUnits/${DocumentTypeComputer.su.name}">
            <patternset>
                <include name="**/*.wsdl"/>
                <include name="**/*.WSDL"/>
                <include name="**/*.xsd"/>
                <include name="**/*.XSD"/>
                <include name="META-INF/jbi.xml"/>
            </patternset>
        </unzip>
        <unzip src="${reference.DocumentTypeComputer.dist}"
dest="${src.dir}/../jbiServiceUnits/META-INF/DocumentTypeComputer">
            <patternset>
                <include name="META-INF/catalog.xml"/>
            </patternset>
        </unzip>
        <jbi-javaee-dist projectName="DocumentTypeComputer" subprojJar="${reference.DocumentTypeComputer.dist}"
subprojDir="${project.DocumentTypeComputer}" suExtractDir="${DocumentTypeComputer.su.dir}"
subprojResource="${resource.DocumentTypeComputer}"/>

- target with name="library-inclusion-in-archive"

        <unjar dest="${build.classes.dir}" src="${reference.DocumentTypeComputer.dist}"/>

- target with name="library-inclusion-in-manifest"

        <basename property="included.lib.reference.DocumentTypeComputer.dist"
file="${reference.DocumentTypeComputer.dist}"/>
        <copy todir="${build.classes.dir}" file="${reference.DocumentTypeComputer.dist}"/>

- target with name="deps-clean"

        <ant target="clean" inheritall="false" antfile="${project.DocumentTypeComputer}/build.xml"
dir="${project.DocumentTypeComputer}"/>
Comment 1 Jun Qian 2009-02-10 00:35:49 UTC
I do see leftover properties in the project.properties file after a Java EE SU is deleted from CASA, but the
nbproject/build-impl.xml does get cleaned up and I don't see any build error.

Girish, could you please take a look?