patilpreetam / soi-toolkit

Automatically exported from code.google.com/p/soi-toolkit
0 stars 0 forks source link

Eclipse-plugin: do not allow name of integration component to start with a number #380

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Java generally does not allow identifiers to start with a number, it is however 
not obvious that the integration component name will be used a part of a java 
package name, and the error message is nowhere near to really describe whats 
wrong and how to correct it.

---
What steps will reproduce the problem?

Use the soi-tk eclipse-plugin to create an integration component named:

061-m340ce-robust-oneway

This will fail with an obscure error message.

Building with maven at command-line makes things a bit more clear - but still 
not crisp:

cd $SOITK_GENDIR/061-m340ce-robust-oneway
mvn clean install

---

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ 
061-m340ce-robust-oneway ---
[INFO] Compiling 1 source file to 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/target/test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[1,18] error: 
';' expected
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[12,12] error: 
<identifier> expected
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[12,44] error: 
<identifier> expected
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[18,65] error: 
')' expected
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[18,93] error: 
illegal start of type
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[18,94] error: 
<identifier> expected
[ERROR] 
/Users/hakan/tmp/soitk_default_root/061-m340ce-robust-oneway/src/test/java/org/s
ample/061m340cerobustoneway/061M340ceRobustOnewayMuleServer.java:[18,99] error: 
';' expected
[INFO] 7 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.027s
[INFO] Finished at: Fri Oct 24 09:13:52 CEST 2014
[INFO] Final Memory: 22M/327M
[INFO] ------------------------------------------------------------------------

Original issue reported on code.google.com by hakan.d...@gmail.com on 24 Oct 2014 at 7:30