Correct they are not generated, and the internal function for writing
out the typeholder source is no longer present in V2.x.

Only the binary .class file is created, which is why IDE's get so upset.
The only way I can see is if in the IDE it is possible to ensure the
output bin dir is on the classpath. Now I'm not sure about IntelliJ, as
I havn't used it in a while, but Eclipse will not use a .class file in
the bin dir to resolve code in the IDE it seems to presume there is a
corresponding  source file, which it doesn't find so marks them all as
errors. The only way to get it to work in Eclipse is to build the output
jar and use that on the dependancies. Of course everytime you need to
regen .....

I tried doing a command line build to the same directories as Eclipse
stores it's output but these directories are nuked during a clean and so
the typeholder .class file is cleaned up. If you go back to the
commandline and build, Eclipse notices the source files have changed and
tries to do a build and cleans the .class file, which you just
generated.

Regards

Don

-----Original Message-----
From: Charles Blaxland (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: 06 July 2005 05:20
To: [EMAIL PROTECTED]
Subject: [jira] Commented: (XMLBEANS-120) No TypeHolder generated in
-srconly

    [
http://issues.apache.org/jira/browse/XMLBEANS-120?page=comments#action_1
2315113 ] 

Charles Blaxland commented on XMLBEANS-120:
-------------------------------------------

I've just tried upgrading to 2.0, and I'm getting the same problem.  I'm
compiling with -srconly, and I get a TypeSystemHolder.class generated,
but no TypeSystemHolder.java!  This is not just an Eclipse issue - the
TypeSystemHolder.java files seems to be simply not generated.

> No TypeHolder generated in -srconly
> -----------------------------------
>
>          Key: XMLBEANS-120
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-120
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 2
>     Reporter: Don Stewart
>     Assignee: Radu Preotiuc-Pietro
>     Priority: Minor
>  Attachments: SpaceSystem.xsd
>
> If youcreate a -srconly output no TypeHolder class is generated. If
you try to edit the source files in an IDE they all point to a missing
class and as such the IDE's report errors in every generated Interface.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to