haidubogdan commented on PR #7618:
URL: https://github.com/apache/netbeans/pull/7618#issuecomment-2407900517
> This currently fails to build from source. With this patch I can build
again:
>
> ```diff
> diff --git a/php/php.blade/build.xml b/php/php.blade/build.xml
> index 409c84c8400b..4ea7b71c6021 100644
> --- a/php/php.blade/build.xml
> +++ b/php/php.blade/build.xml
> @@ -26,23 +26,35 @@
> <property name="v10.outdir"
location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/v10"/>
> <property name="formatter.outdir"
location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/formatter"/>
>
> - <java classname="org.antlr.v4.Tool" fork="true"
dir="${v10.outdir}">
> + <java classname="org.antlr.v4.Tool" fork="true"
dir="${v10.outdir}" failonerror="true">
> <arg value="-o"/>
> <arg value="${v10.outdir}"/>
> <arg value="BladeAntlrLexer.g4"/>
> <arg value="BladeAntlrParser.g4"/>
> + <classpath>
> + <fileset dir="../../ide/libs.antlr4.runtime/external"
includes="*.jar" />
> + <fileset dir="../../ide/libs.antlr3.runtime/external"
includes="antlr-runtime-*.jar" />
> + </classpath>
> </java>
> - <java classname="org.antlr.v4.Tool" fork="true"
dir="${v10.outdir}">
> + <java classname="org.antlr.v4.Tool" fork="true"
dir="${v10.outdir}" failonerror="true">
> <arg value="-o"/>
> <arg value="${v10.outdir}"/>
> <arg value="BladeAntlrColoringLexer.g4"/>
> + <classpath>
> + <fileset dir="../../ide/libs.antlr4.runtime/external"
includes="*.jar" />
> + <fileset dir="../../ide/libs.antlr3.runtime/external"
includes="antlr-runtime-*.jar" />
> + </classpath>
> </java>
>
> - <java classname="org.antlr.v4.Tool" fork="true"
dir="${formatter.outdir}">
> + <java classname="org.antlr.v4.Tool" fork="true"
dir="${formatter.outdir}" failonerror="true">
> <arg value="-o"/>
> <arg value="${formatter.outdir}"/>
> <arg value="BladeAntlrFormatterLexer.g4"/>
> <arg value="BladeAntlrFormatterParser.g4"/>
> + <classpath>
> + <fileset dir="../../ide/libs.antlr4.runtime/external"
includes="*.jar" />
> + <fileset dir="../../ide/libs.antlr3.runtime/external"
includes="antlr-runtime-*.jar" />
> + </classpath>
> </java>
> <delete dir="${v10.outdir}" includes="*.tokens"/>
> <delete dir="${v10.outdir}" includes="*.interp"/>
> ```
I can add the updates.
I guess it could be something similar to
https://github.com/apache/netbeans/blob/master/webcommon/javascript2.json/build.xml
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists