You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@basistech.com> on 2007/09/04 02:59:22 UTC

minor eclipse irrirations

I get two of these. Is there a reason not to fix them?

 

Severity and Description        Path     Resource         Location
Creation Time Id

Got an exception - Unexpected character 0x23 in identifier
cxf-http-basic/src/main/resources/archetype-resources/src/main/java
HelloWorld.java            line 1   1188867435897          11


Re: minor eclipse irrirations

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday 05 September 2007, Glen Mazza wrote:
> Am Dienstag, den 04.09.2007, 11:30 -0400 schrieb Daniel Kulp:
> > Technically, the cxf-http-basic project should not be imported into
> > eclipse.   It's not really a java project.   It's a maven archtype.
> > The "HelloWorld.java" file in there is really a velocity template
> > used by the archtype plugin to create a HelloWorld.java file.  
> > Thus, there are invalid java constructs in there.   I've updated the
> > page on the wiki to say to not import that project.
>
> Can't that HelloWorld.java file just be renamed HelloWorld.java.vm
> instead?  That should fix the problem with Eclipse, without the hassle
> of needing to explicitly exclude the cxf-http-basic subproject.

If only it worked that way.  :-(

The maven archtype doesn't do any file renaming when creating a new 
project based on the archtype.   HelloWorld.java.vm would not be renamed 
to HelloWorld.java.  


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: minor eclipse irrirations

Posted by Glen Mazza <gl...@verizon.net>.
Am Dienstag, den 04.09.2007, 11:30 -0400 schrieb Daniel Kulp:
> On Monday 03 September 2007, Benson Margulies wrote:
> > I get two of these. Is there a reason not to fix them?
> >
> > Severity and Description        Path     Resource         Location
> > Creation Time Id
> >
> > Got an exception - Unexpected character 0x23 in identifier
> > cxf-http-basic/src/main/resources/archetype-resources/src/main/java
> > HelloWorld.java            line 1   1188867435897          11
> 
> 
> Technically, the cxf-http-basic project should not be imported into 
> eclipse.   It's not really a java project.   It's a maven archtype.   
> The "HelloWorld.java" file in there is really a velocity template used 
> by the archtype plugin to create a HelloWorld.java file.   Thus, there 
> are invalid java constructs in there.   I've updated the page on the 
> wiki to say to not import that project.  

Can't that HelloWorld.java file just be renamed HelloWorld.java.vm
instead?  That should fix the problem with Eclipse, without the hassle
of needing to explicitly exclude the cxf-http-basic subproject.

Glen



Re: minor eclipse irrirations

Posted by Daniel Kulp <dk...@apache.org>.
On Monday 03 September 2007, Benson Margulies wrote:
> I get two of these. Is there a reason not to fix them?
>
> Severity and Description        Path     Resource         Location
> Creation Time Id
>
> Got an exception - Unexpected character 0x23 in identifier
> cxf-http-basic/src/main/resources/archetype-resources/src/main/java
> HelloWorld.java            line 1   1188867435897          11


Technically, the cxf-http-basic project should not be imported into 
eclipse.   It's not really a java project.   It's a maven archtype.   
The "HelloWorld.java" file in there is really a velocity template used 
by the archtype plugin to create a HelloWorld.java file.   Thus, there 
are invalid java constructs in there.   I've updated the page on the 
wiki to say to not import that project.    

I think the new version of the eclipse plugin allows a "skip" parameter.   
Might be able to configure it in that project so the eclipse stuff isn't 
generated and it would then not be available for import.

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog