Discussion:
[Middlegen-user] Something isn't working.
Robert Nicholson
2002-12-01 23:28:25 UTC
Permalink
When running ant and quitting the gui that shows me the middlegen
relationships etc.

The middlegen task just quits.

if I type

ant ear

I get here before the gui pops up

[middlegen] ********************************************************
[middlegen] * CTRL-Click relations to modify their cardinality *
[middlegen] * SHIFT-Click relations to modify their directionality *
[middlegen] ********************************************************

if i click "generate"

I get here

(middlegen.FileProducer 404 ) Generating
/Users/robert/Java/middlegen/samples/build/gen-webui/struts/
formPersonInc.jsp using template from
jar:file:/Users/robert/Java/middlegen/middlegen-struts-plugin-2.0-b2-
dev.jar!/middlegen/plugins/struts/form-inc-jsp.vm

if I quit the swing app

ant does not complete.

I do not have a build/ear directory
Aslak Hellesoy
2002-12-01 23:53:03 UTC
Permalink
1) What Middlegen/Ant/JDK version?

2) How does your Ant script look?
-----Original Message-----
Nicholson
Sent: 2. desember 2002 02:28
Subject: [Middlegen-user] Something isn't working.
When running ant and quitting the gui that shows me the middlegen
relationships etc.
The middlegen task just quits.
That's normal. The middlegen task is halted until you quit the gui. Then the
task is done.
Not sure what you mean by "quit" though.
if I type
ant ear
I get here before the gui pops up
[middlegen] ********************************************************
[middlegen] * CTRL-Click relations to modify their cardinality *
[middlegen] * SHIFT-Click relations to modify their directionality *
[middlegen] ********************************************************
if i click "generate"
I get here
(middlegen.FileProducer 404 ) Generating
/Users/robert/Java/middlegen/samples/build/gen-webui/struts/
formPersonInc.jsp using template from
jar:file:/Users/robert/Java/middlegen/middlegen-struts-plugin-2.0-b2-
dev.jar!/middlegen/plugins/struts/form-inc-jsp.vm
if I quit the swing app
ant does not complete.
3) You mean the VM just exits?

4) Or does it hang?

5) Do you get "BUILD SUCCESSFUL" or "BUILD FAILED"

6) Can you show me Ant's output after middlegen has started until the end?

Cheers,
Aslak
I do not have a build/ear directory
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Robert Nicholson
2002-12-02 07:56:30 UTC
Permalink
It only completes if i set gui=false..

ie. if gni=true when I quit ie. exit the swing application it just
stops the ant processing
al together.

when I have gui=false it will proceed onto ejbdoclet etc etc.
Post by Aslak Hellesoy
1) What Middlegen/Ant/JDK version?
Aslak Hellesoy
2002-12-02 07:59:53 UTC
Permalink
Aslak Hellesoy
2002-12-02 17:33:14 UTC
Permalink
-----Original Message-----
Sent: 2. desember 2002 12:20
To: Aslak Hellesoy
Subject: Re: [Middlegen-user] Something isn't working.
There are two scenarios posted below...
Sorry, I didn't see that. It was so long.
the first is when gui = true
ie. it stops after middlegen (after I hit generate and quit the gui and
the ant tasks stops) and does _NOT_ proceed to ejbdoclet after it's
generated the jsps.
It looks like the VM just dies. I'm not able to reproduce this on
CVS HEAD / Ant 1.5.1 / jdk1.3.1_06 / W2K

-So I suspect this might have something to do with your MACOSX. According to
the JFrame API, the VM should not exit when a frame is closed unless
setDefaultCloseOperation(EXIT_ON_CLOSE) has been called on it earlier. I
never call that method, but maybe the MACOSX JDK behaves differently? I
couldn't find any info about this on the web either.

I have added some code in JMiddlegenFrame that installs a security manager
that disallows a VM exit. Please check it out, uncomment line 119, rebuild
middlegen and run the samples again.

If you get a security exception, I have confirmed my hypothesis, and I
should be able to fix it. Otherwise I'm clueless.

HTH,
Aslak
the second scenario is when gui = false and then it goes the whole way
thru.
please read my comment before the beginning of the second scenario.
Loading...