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.

View | Details | Raw Unified | Return to bug 197067
Collapse All | Expand All

(-)a/j2ee.earproject/src/org/netbeans/modules/j2ee/earproject/resources/build-impl.xsl (-19 / +13 lines)
Lines 267-273 Link Here
267
                    -->
267
                    -->
268
                    <xsl:attribute name="property">build.deploy.on.save</xsl:attribute>
268
                    <xsl:attribute name="property">build.deploy.on.save</xsl:attribute>
269
                    <xsl:attribute name="else">false</xsl:attribute>
269
                    <xsl:attribute name="else">false</xsl:attribute>
270
                    <istrue value="${{j2ee.deploy.on.save}}"/>
270
                    <or>
271
                        <istrue value="${{j2ee.deploy.on.save}}"/>
272
                        <istrue value="${{j2ee.compile.on.save}}"/>
273
                    </or>
271
                </condition>         
274
                </condition>         
272
            </target>
275
            </target>
273
            
276
            
Lines 969-974 Link Here
969
        <target name="{$targetname}">
972
        <target name="{$targetname}">
970
            <xsl:attribute name="depends">init</xsl:attribute>
973
            <xsl:attribute name="depends">init</xsl:attribute>
971
            <xsl:attribute name="unless">no.deps</xsl:attribute>
974
            <xsl:attribute name="unless">no.deps</xsl:attribute>
975
            <!--
976
            If build.deploy.on.save is not set init-cos hasn't
977
            been called so we are running the old style build.
978
            -->
979
            <condition>
980
                <xsl:attribute name="property">build.deploy.on.save</xsl:attribute>
981
                <xsl:attribute name="value">false</xsl:attribute>
982
                <not><isset property="build.deploy.on.save"/></not>
983
            </condition>            
972
            <xsl:variable name="references" select="/p:project/p:configuration/projdeps:references"/>
984
            <xsl:variable name="references" select="/p:project/p:configuration/projdeps:references"/>
973
            <xsl:for-each select="$references/projdeps:reference[not($type) or projdeps:artifact-type = $type]">
985
            <xsl:for-each select="$references/projdeps:reference[not($type) or projdeps:artifact-type = $type]">
974
                <xsl:variable name="subproj" select="projdeps:foreign-project"/>
986
                <xsl:variable name="subproj" select="projdeps:foreign-project"/>
Lines 983-997 Link Here
983
                    </xsl:choose>
995
                    </xsl:choose>
984
                </xsl:variable>
996
                </xsl:variable>
985
                <xsl:variable name="script" select="projdeps:script"/>
997
                <xsl:variable name="script" select="projdeps:script"/>
986
                <!--
987
                If build.deploy.on.save is not set init-cos hasn't
988
                been called so we are running the old style build.
989
                -->
990
                <condition>
991
                    <xsl:attribute name="property">build.deploy.on.save</xsl:attribute>
992
                    <xsl:attribute name="value">false</xsl:attribute>
993
                    <not><isset property="build.deploy.on.save"/></not>
994
                </condition>
995
                <ant target="{$subtarget}" inheritall="false" antfile="${{project.{$subproj}}}/{$script}">                   
998
                <ant target="{$subtarget}" inheritall="false" antfile="${{project.{$subproj}}}/{$script}">                   
996
                    <property name="dist.ear.dir" location="${{build.dir}}"/>
999
                    <property name="dist.ear.dir" location="${{build.dir}}"/>
997
                    <xsl:choose>
1000
                    <xsl:choose>
Lines 1017-1031 Link Here
1017
                    </xsl:choose>
1020
                    </xsl:choose>
1018
                </xsl:variable>
1021
                </xsl:variable>
1019
                <xsl:variable name="script" select="projdeps2:script"/>
1022
                <xsl:variable name="script" select="projdeps2:script"/>
1020
                <!--
1021
                If build.deploy.on.save is not set init-cos hasn't
1022
                been called so we are running the old style build.
1023
                -->
1024
                <condition>
1025
                    <xsl:attribute name="property">build.deploy.on.save</xsl:attribute>
1026
                    <xsl:attribute name="value">false</xsl:attribute>
1027
                    <not><isset property="build.deploy.on.save"/></not>
1028
                </condition>
1029
                <ant target="{$subtarget}" inheritall="false" antfile="{$script}">
1023
                <ant target="{$subtarget}" inheritall="false" antfile="{$script}">
1030
                    <property name="dist.ear.dir" location="${{build.dir}}"/>
1024
                    <property name="dist.ear.dir" location="${{build.dir}}"/>
1031
                    <xsl:for-each select="projdeps2:properties/projdeps2:property">
1025
                    <xsl:for-each select="projdeps2:properties/projdeps2:property">
(-)a/j2ee.ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/resources/build-impl.xsl (-1 / +5 lines)
Lines 291-303 Link Here
291
            </target>
291
            </target>
292
            
292
            
293
            <!-- COS feature - used in run-deploy -->
293
            <!-- COS feature - used in run-deploy -->
294
            <!-- compiler use deploy.on.save flag to fire changes -->
294
            <target name="-init-cos">
295
            <target name="-init-cos">
295
                <xsl:attribute name="depends">init</xsl:attribute>
296
                <xsl:attribute name="depends">init</xsl:attribute>
296
                <xsl:attribute name="unless">deploy.on.save</xsl:attribute>
297
                <xsl:attribute name="unless">deploy.on.save</xsl:attribute>
297
                <condition>
298
                <condition>
298
                    <xsl:attribute name="property">deploy.on.save</xsl:attribute>
299
                    <xsl:attribute name="property">deploy.on.save</xsl:attribute>
299
                    <xsl:attribute name="value">true</xsl:attribute>
300
                    <xsl:attribute name="value">true</xsl:attribute>
300
                    <istrue value="${{j2ee.deploy.on.save}}"/>
301
                    <or>
302
                        <istrue value="${{j2ee.deploy.on.save}}"/>
303
                        <istrue value="${{j2ee.compile.on.save}}"/>
304
                    </or>
301
                </condition>         
305
                </condition>         
302
            </target>
306
            </target>
303
            
307
            
(-)a/web.project/src/org/netbeans/modules/web/project/resources/build-impl.xsl (-1 / +5 lines)
Lines 346-358 Link Here
346
            </target>
346
            </target>
347
            
347
            
348
            <!-- COS feature - used in run-deploy -->
348
            <!-- COS feature - used in run-deploy -->
349
            <!-- compiler use deploy.on.save flag to fire changes -->
349
            <target name="-init-cos">
350
            <target name="-init-cos">
350
                <xsl:attribute name="depends">init</xsl:attribute>
351
                <xsl:attribute name="depends">init</xsl:attribute>
351
                <xsl:attribute name="unless">deploy.on.save</xsl:attribute>
352
                <xsl:attribute name="unless">deploy.on.save</xsl:attribute>
352
                <condition>
353
                <condition>
353
                    <xsl:attribute name="property">deploy.on.save</xsl:attribute>
354
                    <xsl:attribute name="property">deploy.on.save</xsl:attribute>
354
                    <xsl:attribute name="value">true</xsl:attribute>
355
                    <xsl:attribute name="value">true</xsl:attribute>
355
                    <istrue value="${{j2ee.deploy.on.save}}"/>
356
                    <or>
357
                        <istrue value="${{j2ee.deploy.on.save}}"/>
358
                        <istrue value="${{j2ee.compile.on.save}}"/>
359
                    </or>
356
                </condition>            
360
                </condition>            
357
            </target>
361
            </target>
358
            
362
            

Return to bug 197067