Skip to content

Commit

Permalink
[NETBEANS-3260] : Corrected output for modular project while building…
Browse files Browse the repository at this point in the history
… using ant script
  • Loading branch information
singh-akhilesh committed Jan 8, 2020
1 parent 1f0916a commit fffdefc
Showing 1 changed file with 25 additions and 3 deletions.
Expand Up @@ -1697,7 +1697,7 @@ is divided into following sections:
</target>

<target name="-do-jar-jar">
<xsl:attribute name="depends">init,compile,-pre-pre-jar,-pre-jar</xsl:attribute>
<xsl:attribute name="depends">init,compile,-pre-pre-jar,-pre-jar,-main-module-check-condition</xsl:attribute>
<xsl:attribute name="if">do.archive</xsl:attribute>
<xsl:attribute name="unless">do.mkdist</xsl:attribute>
<property name="build.modules.dir.resolved" location="${{build.modules.dir}}"/>
Expand All @@ -1716,7 +1716,17 @@ is divided into following sections:
<param name="module.dir" location="${{entry}}"/>
</antcall>
</j2semodularproject1:for-paths>

<condition property="named.module.internal">
<and>
<isset property="module.name"/>
<length length="0" string="${{module.name}}" when="greater"/>
</and>
</condition>
<condition property="unnamed.module.internal">
<not>
<isset property="named.module.internal"/>
</not>
</condition>
<property location="${{build.classes.dir}}" name="build.classes.dir.resolved"/>
<property location="${{dist.jar}}" name="dist.jar.resolved"/>
<pathconvert property="run.classpath.with.dist.jar">
Expand All @@ -1727,7 +1737,7 @@ is divided into following sections:
<path path="${{run.modulepath}}"/>
<map from="${{build.classes.dir.resolved}}" to="${{dist.jar.resolved}}"/>
</pathconvert>
<condition property="jar.usage.message.module.path" value=" -modulepath ${{run.modulepath.with.dist.jar}}" else="">
<condition property="jar.usage.message.module.path" value=" --module-path ${{run.modulepath.with.dist.jar}}" else="">
<and>
<isset property="modules.supported.internal"/>
<length length="0" string="${{run.modulepath.with.dist.jar}}" when="greater"/>
Expand Down Expand Up @@ -1905,6 +1915,18 @@ is divided into following sections:
</condition>
</fail>
</target>
<target name="-main-module-check-condition" depends="-main-module-set" if="main.class.available">
<fail message="Could not determine module of the main class and module.name is not set">
<condition>
<or>
<not>
<isset property="module.name"/>
</not>
<length string="${{module.name}}" when="equal" length="0"/>
</or>
</condition>
</fail>
</target>
<target name="-do-not-recompile">
<property name="javac.includes.binary" value=""/> <!-- #116230 hack -->
</target>
Expand Down

0 comments on commit fffdefc

Please sign in to comment.