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 96886 - On Solaris WSDL gets generated in wrong location when creating IEP project
Summary: On Solaris WSDL gets generated in wrong location when creating IEP project
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP project (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: Yanbing Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 03:14 UTC by lchang
Modified: 2007-04-17 22:31 UTC (History)
0 users

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 lchang 2007-03-01 03:14:14 UTC
Build:  Netbeans Milestone 7b

Short Description:
If I create a project under the default directory /home/user, the wsdl gets 
generated under another project under the directory /home/user/home/user

Steps to reproduce:
1.  On a Solaris machine
2.  Create a simple IEP Module in default directory /home/<user>
3.  Create an IEP Process
4.  Save the IEP Process

Result:
When the auto-generated WSDL gets created, it gets created under the 
directory /home/<user>/home/<user>
Comment 1 Alexei Mokeev 2007-03-01 19:41:09 UTC
Not a stopper for Beta.
Comment 2 Yanbing Lu 2007-03-01 23:29:16 UTC
Checking in src/org/netbeans/modules/iep/editor/tcg/util/GenUtil.java;
/cvs/enterprise/iep/editor/src/org/netbeans/modules/iep/editor/tcg/util/GenUtil.
java,v  <--  GenUtil.java
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Comment 3 Alexei Mokeev 2007-03-06 11:51:43 UTC
Removed EP551_WAIVER_APPROVED
Comment 4 lchang 2007-04-03 22:40:52 UTC
Issue not resolved.

Tested with:  SDK b10, Hula 070403_15

Now when I create an .iep process, a .wsdl supposedly is getting generated, but 
now I am not able to find the location where it is being generated.  When I 
make changes to the .iep process and save again, it states that the .wsdl has 
been manually changed.
Comment 5 Yanbing Lu 2007-04-04 23:56:30 UTC
Fixed

RCS 
file: /cvs/enterprise/iep/editor/src/org/netbeans/modules/iep/editor/model/Mode
lImpl.java,v
retrieving revision 1.3
diff -r1.3 ModelImpl.java
41a42
> import org.openide.filesystems.FileUtil;
127c128,129
<                 OutputStream os = new FileOutputStream(fo.getPath());
---
>                 File file = FileUtil.toFile(fo);
>                 OutputStream os = new FileOutputStream(file);
206c208
<                 return ((DataObject)doc).getPrimaryFile().getPath();
---
>                 return FileUtil.toFile(((DataObject)doc).getPrimaryFile
()).getAbsolutePath();
209c211
<                 return ((File)doc).getPath();
---
>                 return ((File)doc).getAbsolutePath();
Comment 6 lchang 2007-04-17 22:31:54 UTC
Verified in Hula Build 8a, WSDL gets generated in same location as the .iep 
file