History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-14818
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Zhuravlev
Reporter: Thibaut Fagart
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

IDEA 5.1: generated ant build problem

Created: 13 Jul 06 18:50   Updated: 06 Nov 08 23:23
Component/s: Ant Integration, Compiling Project, GUI Designer
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive testBug.zip (11 kb)

Environment: Windows XP

Build: 4,267
Severity: Low


 Description  « Hide
I have a project with a target language level : 1.4, and is using a JDK 1.4 (Websphere 5.1 bundled jdk).
This project uses some IDEA GUI forms
It compiles and runs fine using the IDE run configurations.

I then wanted to deliver it, and generated an ant build using "BuildMenu>generate ant build".

when i ran that script, the javac2 task didn't include the "source=1.4" attribute, which caused the script to fail as my project classes use some assertions



 All   Comments   Work Log   Change History      Sort Order:
Serge Baranov - 13 Jul 06 19:34
As far as I know when Ant is building with JDK 1.4 the source level should default to 1.4 too and it's not necessary to specify it. Please correct me if I'm wrong.

Thibaut - 13 Jul 06 22:44
Well it seems not, as i had to manually add the "source" attribute to the javac2 task.
Or at least not for IBM JDK

Serge Baranov - 14 Jul 06 00:21
Are you sure that 1.4 language level is chosen in Settings | Modules | Language Level for Project?

Thibaut - 14 Jul 06 10:53
Yes I am.
(BTW i upgraded to 5383 today and the same behavior occurs).

If the project language level was not 1.4, then it would not compile (as some classes have assertions).

I just tested to generate the build with no support for IDEA UI forms, and the same problem occurs : the javac task does not have the required attribute source=1.4.
This is using JDK 1.4.2_12 from Sun this time.


Serge Baranov - 14 Jul 06 12:50
Thanks a lot for your comments. We'll investigate this bug.

Thibaut - 14 Jul 06 14:52
here is a sample simple project
  • uses a 1.4 JDK
  • sourcelevel 1.4
  • single class with an assert
  • compiles ok uising IDE
  • generated ant build (no support for UI here) does not run

Alexander Chernikov - 21 Dec 06 17:09
Still the issue in Selena, 6609.