Re: How to build JavaCC from source?

2018-06-04 Thread Antonio

Hi,

Good to know you're helping the JavaCC guys :-)!

Maybe you can adapt the pom.xml file whenever they release the V8,0 
version. It would be great having JavaCC v8,0 uploaded to Maven Central.


Kind regards,
Antonio

El 03/06/2018 a las 10:57, Peter Nabbefeld escribió:


Hi Antonio,

I got to fix the pom.xml and sent them to JavaCC support (which seems to 
be maintained by one of the original authors), but he seems not to be 
interested: "I'm not sure if you are aware, but I'm completely revamping 
the code generator (see the branch csharp_codegen) and calling it V8,0. 
So all the old stuff should just be archived asap. I don't mind the 
maven/pom.xml as long as the ant build can co-exist with it.".


I've primarily been interested in JavaCC, because it started as a 
project sponsored by Sun. But currently I'm not satisfied with it for 
different reasons, e.g. documentation, so I'll not use it.


Kind regards
Peter


Am 01.06.2018 um 21:04 schrieb Antonio:

Hi,

Can you run a plain Maven build in the command line? Is this a 
Maven/pom.xml problem or a NetBeans problem?


If your objective is to build JavaCC from source, I don't think 
messing with the pom.xml (as retrieved from github's master branch) is 
a good idea.


I imagine the JavaCC people have a proper "pom.xml" file in their 
master branch. Just clone the repo and import it in NetBeans, then 
"Clean & Build" should do the job for you.


Cheers,
Antonio

On 01/06/18 19:20, Peter Nabbefeld wrote:


Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git; and tried 
to build it with NB 9.0 RC1. Of course, I first set the source/target 
versions to 1.8.


[1] The source hierarchy looks a bit suspicious, most probably 
because of several entries like the following in pom.xml:

src
 As I've never used those (to be honest, most changes I do in the 
POM are just adding copied dependencies), I don't know how to fix 
these. As I'm seeing Eclipse project files, I'd guess, that it 
handles them differently.


[2] As a result of the mal-configured hierarchy, packages are 
incorrectly interpreted by NB.


Usually, I'd guess the build file is correct, but IMHO maven should 
be able to build the project then without worrying, if NB interpretes 
the files correctly. So, could anybody tell me how to fix the build 
problems?



Kind regards
Peter


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to build JavaCC from source?

2018-06-02 Thread Peter Nabbefeld

Thank You Antonio!

I didn't even think about the possibility, this project could be based 
on sth. other than Maven ... rather strange, IMHO, having the whole 
project structure and a POM.


Kind regards
Peter


Am 02.06.2018 um 06:18 schrieb Antonio:

Hi Peter,

After reading the documentation: this is an ant based project!

I just run "ant" and I build the thing withing 5 seconds [1].

Maybe you want to try to import into NetBeans as an Ant project?

Cheers,
Antonio

[1]

[...]
    [javac] Note: Recompile with -Xlint:unchecked for details.
  [jar] Building jar: /home/antonio/tmp/javacc/target/javacc.jar
  [jar] Building jar: 
/home/antonio/tmp/javacc/target/javacc-7.0.4.jar


BUILD SUCCESSFUL
Total time: 5 seconds



On 01/06/18 23:27, Peter Nabbefeld wrote:


Hi Antonio,

trying to build using NB was my first approach, of course, but 
resulted in several problems.


When trying from the command line, I get following errors (Java9 is 
default on my computer):

[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

Obviously it uses wrong JDK - probably JDK 9 isn't correctly 
identified yet, and Java 5 is taken as a fallback. So, as JDK 10 is 
current version, the POM is at least not ready for modern Java.


After adding the source and target properties, there 's a long list 
with errors. It seems to me, that this special POM might probably 
work with Eclipse (there're Eclipse project files in the repository), 
but I don't see how to build the project even from the command line.  
:-/


Kind regards
Peter



Am 01.06.2018 um 21:04 schrieb Antonio:

Hi,

Can you run a plain Maven build in the command line? Is this a 
Maven/pom.xml problem or a NetBeans problem?


If your objective is to build JavaCC from source, I don't think 
messing with the pom.xml (as retrieved from github's master branch) 
is a good idea.


I imagine the JavaCC people have a proper "pom.xml" file in their 
master branch. Just clone the repo and import it in NetBeans, then 
"Clean & Build" should do the job for you.


Cheers,
Antonio

On 01/06/18 19:20, Peter Nabbefeld wrote:


Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git; and 
tried to build it with NB 9.0 RC1. Of course, I first set the 
source/target versions to 1.8.


[1] The source hierarchy looks a bit suspicious, most probably 
because of several entries like the following in pom.xml:

src
 As I've never used those (to be honest, most changes I do in 
the POM are just adding copied dependencies), I don't know how to 
fix these. As I'm seeing Eclipse project files, I'd guess, that it 
handles them differently.


[2] As a result of the mal-configured hierarchy, packages are 
incorrectly interpreted by NB.


Usually, I'd guess the build file is correct, but IMHO maven should 
be able to build the project then without worrying, if NB 
interpretes the files correctly. So, could anybody tell me how to 
fix the build problems?



Kind regards
Peter


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to build JavaCC from source?

2018-06-01 Thread Peter Nabbefeld



Hi Antonio,

trying to build using NB was my first approach, of course, but resulted 
in several problems.


When trying from the command line, I get following errors (Java9 is 
default on my computer):

[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.

Obviously it uses wrong JDK - probably JDK 9 isn't correctly identified 
yet, and Java 5 is taken as a fallback. So, as JDK 10 is current 
version, the POM is at least not ready for modern Java.


After adding the source and target properties, there 's a long list with 
errors. It seems to me, that this special POM might probably work with 
Eclipse (there're Eclipse project files in the repository), but I don't 
see how to build the project even from the command line.  :-/


Kind regards
Peter



Am 01.06.2018 um 21:04 schrieb Antonio:

Hi,

Can you run a plain Maven build in the command line? Is this a 
Maven/pom.xml problem or a NetBeans problem?


If your objective is to build JavaCC from source, I don't think 
messing with the pom.xml (as retrieved from github's master branch) is 
a good idea.


I imagine the JavaCC people have a proper "pom.xml" file in their 
master branch. Just clone the repo and import it in NetBeans, then 
"Clean & Build" should do the job for you.


Cheers,
Antonio

On 01/06/18 19:20, Peter Nabbefeld wrote:


Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git; and tried 
to build it with NB 9.0 RC1. Of course, I first set the source/target 
versions to 1.8.


[1] The source hierarchy looks a bit suspicious, most probably 
because of several entries like the following in pom.xml:

src
 As I've never used those (to be honest, most changes I do in the 
POM are just adding copied dependencies), I don't know how to fix 
these. As I'm seeing Eclipse project files, I'd guess, that it 
handles them differently.


[2] As a result of the mal-configured hierarchy, packages are 
incorrectly interpreted by NB.


Usually, I'd guess the build file is correct, but IMHO maven should 
be able to build the project then without worrying, if NB interpretes 
the files correctly. So, could anybody tell me how to fix the build 
problems?



Kind regards
Peter


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: How to build JavaCC from source?

2018-06-01 Thread Antonio

Hi,

Can you run a plain Maven build in the command line? Is this a 
Maven/pom.xml problem or a NetBeans problem?


If your objective is to build JavaCC from source, I don't think messing 
with the pom.xml (as retrieved from github's master branch) is a good idea.


I imagine the JavaCC people have a proper "pom.xml" file in their master 
branch. Just clone the repo and import it in NetBeans, then "Clean & 
Build" should do the job for you.


Cheers,
Antonio

On 01/06/18 19:20, Peter Nabbefeld wrote:


Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git; and tried to 
build it with NB 9.0 RC1. Of course, I first set the source/target 
versions to 1.8.


[1] The source hierarchy looks a bit suspicious, most probably because 
of several entries like the following in pom.xml:

src
     As I've never used those (to be honest, most changes I do in the 
POM are just adding copied dependencies), I don't know how to fix these. 
As I'm seeing Eclipse project files, I'd guess, that it handles them 
differently.


[2] As a result of the mal-configured hierarchy, packages are 
incorrectly interpreted by NB.


Usually, I'd guess the build file is correct, but IMHO maven should be 
able to build the project then without worrying, if NB interpretes the 
files correctly. So, could anybody tell me how to fix the build problems?



Kind regards
Peter


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



How to build JavaCC from source?

2018-06-01 Thread Peter Nabbefeld



Hello,

I cloned JavaCC from "https://github.com/javacc/javacc.git; and tried to 
build it with NB 9.0 RC1. Of course, I first set the source/target 
versions to 1.8.


[1] The source hierarchy looks a bit suspicious, most probably because 
of several entries like the following in pom.xml:

src
    As I've never used those (to be honest, most changes I do in the 
POM are just adding copied dependencies), I don't know how to fix these. 
As I'm seeing Eclipse project files, I'd guess, that it handles them 
differently.


[2] As a result of the mal-configured hierarchy, packages are 
incorrectly interpreted by NB.


Usually, I'd guess the build file is correct, but IMHO maven should be 
able to build the project then without worrying, if NB interpretes the 
files correctly. So, could anybody tell me how to fix the build problems?



Kind regards
Peter


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists