cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 153537 - Removing a SU from a CA fails
: Removing a SU from a CA fails
Status: NEW
: soa
Composite Application
: 6.1
: All All
: P3 (vote)
: TBD
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-11-20 14:09 by
Modified: 2009-02-10 00:35 (History)
Issue Type: DEFECT
:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-11-20 14:09:55
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 From 2009-02-10 00:35:49 -------
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?