Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » assert & export
assert & export [message #211263] Mon, 15 March 2004 10:11 Go to next message
Eclipse UserFriend
Originally posted by: skywalker6.gmx.net

Hi,

I am developing an eclipse-plugin which sometimes uses assert(). When I
run it in runtim-workspace it workes fine. No I want to export it. But I
always get Errors. When I don't use assert() I dont get this Errors.
I tried many things to change this, but nothing worked. I tried:
- adding 2 lines to build.xml:
<property name="javacSource" value="1.4">
<property name="javacTarget" value="1.4"> (I tried 1.2 too)
- run ant... on build.xml and select Properties, add Property, Name:
javacSource
Re: assert & export [message #211518 is a reply to message #211263] Mon, 15 March 2004 13:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Mon, 15 Mar 2004 15:11:07 +0000 (UTC), skywalker6@gmx.net (Steven)
a écrit :
>I am developing an eclipse-plugin which sometimes uses assert(). When I
>run it in runtim-workspace it workes fine. No I want to export it. But I
>always get Errors. When I don't use assert() I dont get this Errors.
>I tried many things to change this, but nothing worked. I tried:
>- adding 2 lines to build.xml:
> <property name="javacSource" value="1.4">
> <property name="javacTarget" value="1.4"> (I tried 1.2 too)
If you put javacSource=1.4, then assert cannot be used as an
Identifier. In asser() , assert is an Identifier.
You should set your source level to 1.3.
--
Olivier
Re: assert & export [message #211556 is a reply to message #211518] Mon, 15 March 2004 14:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skywalker6.gmx.net

Olivier Thomann wrote:

> Le Mon, 15 Mar 2004 15:11:07 +0000 (UTC), skywalker6@gmx.net (Steven)
> a écrit :
> >I am developing an eclipse-plugin which sometimes uses assert(). When I
> >run it in runtim-workspace it workes fine. No I want to export it. But I
> >always get Errors. When I don't use assert() I dont get this Errors.
> >I tried many things to change this, but nothing worked. I tried:
> >- adding 2 lines to build.xml:
> > <property name="javacSource" value="1.4">
> > <property name="javacTarget" value="1.4"> (I tried 1.2 too)
> If you put javacSource=1.4, then assert cannot be used as an
> Identifier. In asser() , assert is an Identifier.
> You should set your source level to 1.3.
> --
> Olivier

Sorry, but I didn't use assert() (my fault) - I used assert without ().
For example I Wrote assert x==5
So I have to set source level to 1.4
But this doesn't work.
Re: assert & export [message #211629 is a reply to message #211556] Mon, 15 March 2004 16:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Mon, 15 Mar 2004 19:12:58 +0000 (UTC), skywalker6@gmx.net (Steven)
a écrit :
>Sorry, but I didn't use assert() (my fault) - I used assert without ().
>For example I Wrote assert x==5
>So I have to set source level to 1.4
>But this doesn't work.
Could you please send me your ant script?
--
Olivier
Re: assert & export [message #211652 is a reply to message #211629] Mon, 15 March 2004 17:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: skywalker6.gmx.net

Olivier Thomann wrote:

> Le Mon, 15 Mar 2004 19:12:58 +0000 (UTC), skywalker6@gmx.net (Steven)
> a écrit :
> >Sorry, but I didn't use assert() (my fault) - I used assert without ().
> >For example I Wrote assert x==5
> >So I have to set source level to 1.4
> >But this doesn't work.
> Could you please send me your ant script?
> --
> Olivier

I sent it to you by email.

thanks a lot - Steven
Re: assert & export [message #211659 is a reply to message #211629] Mon, 15 March 2004 18:05 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Olivier Thomann wrote:
> Le Mon, 15 Mar 2004 19:12:58 +0000 (UTC), skywalker6@gmx.net (Steven)
> a écrit :
>
>>Sorry, but I didn't use assert() (my fault) - I used assert without ().
>>For example I Wrote assert x==5
>>So I have to set source level to 1.4
>>But this doesn't work.
>
> Could you please send me your ant script?
> --
> Olivier

as I indicated in the bug report (AFAIK) my script is the one generated
by eclipse with no modifications. Also, the Export feature fails in the
same way. I just assume the export feature uses Ant underneath!?

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Previous Topic:How to Re-use platform Icons
Next Topic:How do you load a plugin from startup?
Goto Forum:
  


Current Time: Thu Jul 24 18:39:07 EDT 2025

Powered by FUDForum. Page generated in 0.05133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top