This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26431 - makenbm target fails with Ant 1.5
Summary: makenbm target fails with Ant 1.5
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Michal Zlamal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-09 21:14 UTC by Rochelle Raccah
Modified: 2002-12-03 20:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2002-08-09 21:14:05 UTC
Here's the error: (looks like ANT 1.5 doesn't have
this method)
> 
> /*  ANT 1.5  */
>     public void setKeystore(final File keystore)
{
>         this.keystore = keystore;
>     }
> 
> /* ANT 1.4.1 */
>     public void setKeystore(final String
keystore) {
>         this.keystore = keystore;
>     }
> 
> java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.SignJar.setKeystore(Ljava/lang/String;)V
>         at
org.netbeans.nbbuild.MakeNBM.execute(MakeNBM.java:464)
>         at
org.apache.tools.ant.Task.perform(Task.java:317)
>         at
org.apache.tools.ant.Target.execute(Target.java:309)
>         at
org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>         at
org.apache.tools.ant.Task.perform(Task.java:317)
>         at
org.apache.tools.ant.Target.execute(Target.java:309)
>         at
org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>         at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
>         at
org.apache.tools.ant.Task.perform(Task.java:317)
>         at
>
org.apache.tools.ant.Target.execute(Target.java:309)
>         at
org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at
org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at
org.apache.tools.ant.Main.start(Main.java:196)
>         at
org.apache.tools.ant.Main.main(Main.java:235)
>
org.apache.tools.ant.taskdefs.SignJar.setKeystore(Ljava/lang/String;)V
Comment 1 Michal Zlamal 2002-08-12 21:34:12 UTC
I'll take care about it.
Comment 2 Michal Zlamal 2002-08-16 15:18:07 UTC
ANT 1.5 is not currently supported,  but I'll add reflection to 
org.netbeans.nbbuild.MakeNBM to be prepared on switch to ANT 1.5
Comment 3 Michal Zlamal 2002-08-20 15:17:09 UTC
I added reflection for two methods - setStorekey and setJar, 
both have the same problem - prameter was changed from 
String to File :-(.
Comment 4 Jesse Glick 2002-10-28 14:48:01 UTC
Michal please make sure Target Milestone is set when marking an issue
FIXED - thanks.
Comment 5 Jesse Glick 2002-10-28 14:49:50 UTC
Annoying that 3.4 cannot be built with 1.5, especially when a 1.5.1
upgrade module is available for the 3.4 IDE!
Comment 6 Michal Zlamal 2002-11-07 15:01:17 UTC
I know that this is annoying, but I don't think we can do anything with it.
We can't change sources of already released product.
Comment 7 Jaroslav Tulach 2002-12-03 09:54:48 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 8 rbalada 2002-12-03 15:08:00 UTC
The fix has been backported to release341 branch.