Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 81367 - Projects do not require the default attribute
Summary: Projects do not require the default attribute
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 83836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-16 03:36 EST by Jan Matèrne CLA
Modified: 2005-01-27 10:59 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Matèrne CLA 2004-12-16 03:36:46 EST
An input of 
    <p 
is completed to 
    <project default=""></project>
But the default-attribute is not mandatory any more. Especially if the buildfile
doesnt contain any targets.

<project>
   <echo>Hello World</echo>
</project>
Comment 1 Jan Matèrne CLA 2004-12-16 07:29:36 EST
Sorry forgotten to say:

I added the 
  <p
on a blank file only containing a xml header
  <?xml version="1.0" encoding="ISO-8859-1"?>
Comment 2 Darin Swanson CLA 2004-12-16 09:53:00 EST
Thanks. I was confused by the Ant manual :-)
Logged http://issues.apache.org/bugzilla/show_bug.cgi?id=32732

We will need to remove our error generation for projects with no default 
targets (AntModel.checkTargets())
Comment 3 Jan Matèrne CLA 2004-12-17 05:58:55 EST
So you fix our report and we fix yours :)
But Matt was faster than me.
Comment 4 Darin Swanson CLA 2004-12-17 11:26:04 EST
The way open source is supposed to work :-) 
But, no fair, your fix was easier than mine :-)
Comment 5 Darin Swanson CLA 2004-12-30 14:19:58 EST
Fixed with changes to AntEditorCompletionProcessor, AntModel and 
AntModelMessage.properties
Comment 6 Darin Swanson CLA 2004-12-30 14:20:29 EST
Please verify Darinw.
Comment 7 Darin Wright CLA 2005-01-11 08:58:42 EST
Verified.
Comment 8 Darin Swanson CLA 2005-01-27 10:59:26 EST
*** Bug 83836 has been marked as a duplicate of this bug. ***