Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 397685

Summary: TAU JAXB workflow for ETFw
Product: [Tools] PTP Reporter: Chris Navarro <cmnavarr>
Component: ETFwAssignee: Chris Navarro <cmnavarr>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: beth
Version: unspecified   
Target Milestone: 7.0   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 397684, 399550    
Bug Blocks:    
Attachments:
Description Flags
source code and patches
none
projects for tau-jaxb in new etfw framework
none
projects for tau-jaxb in new etfw framework
none
new projects for ETFw TAU Jaxb
none
patches ptp projects for tau contribution none

Description Chris Navarro CLA 2013-01-08 11:04:54 EST
Created attachment 225346 [details]
source code and patches

I have created a JAXB workflow representation for TAU using the proposed ETFw JAXB framework in bug 397684. Some modifications were made to the resource manager schema to support new widgets.
Comment 1 Chris Navarro CLA 2013-02-14 13:29:30 EST
Created attachment 227098 [details]
projects for tau-jaxb in new etfw framework
Comment 2 Chris Navarro CLA 2013-02-14 13:31:30 EST
Created attachment 227099 [details]
projects for tau-jaxb in new etfw framework

I didn't see a way to obsolete the previous attachments after I forgot to check the box so here is another attempt. All patches for the framework are done in bug 397684 since all PTP patches were just x-friends.
Comment 3 Greg Watson CLA 2013-03-12 14:36:14 EDT
Chris, can you make the same statements for this bug? Thanks.

1.  I authored 100% of the content I'm contributing
2.  I have the rights to contribute the content to Eclipse
3.  I contribute the content under the EPL'
Comment 4 Greg Watson CLA 2013-03-12 14:38:18 EDT
Also, please update the patch to address same issues for bug 397684 comment 10.
Comment 5 Chris Navarro CLA 2013-03-12 14:49:58 EDT
I will make those changes. One other thing, I need to x-friend a package in org.eclipse.ptp.etfw for the plugin org.eclipse.ptp.etfw.tau.ui; however, I already have changes in my workspace to org.eclipse.ptp.etfw for bug 402787 (ETFw preference). If there are no objections, I will include the x-friend as part of 402787 patch since the discouraged access for the one class won't break anything. Unless you have another suggestion on how to do it. 

(In reply to comment #4)
> Also, please update the patch to address same issues for bug 397684 comment
> 10.
Comment 6 Chris Navarro CLA 2013-03-12 16:32:55 EDT
Created attachment 228311 [details]
new projects for ETFw TAU Jaxb
Comment 7 Chris Navarro CLA 2013-03-12 16:33:37 EDT
Created attachment 228312 [details]
patches ptp projects for tau contribution
Comment 8 Chris Navarro CLA 2013-03-12 16:34:30 EDT
1) I have authored 100% of the content I am contributing
2) I have the rights to contribute the content to Eclipse
3) I contribute the content under the EPL.

(In reply to comment #3)
> Chris, can you make the same statements for this bug? Thanks.
> 
> 1.  I authored 100% of the content I'm contributing
> 2.  I have the rights to contribute the content to Eclipse
> 3.  I contribute the content under the EPL'
Comment 9 Greg Watson CLA 2013-03-13 14:15:30 EDT
Great, thanks. This has been approved also.

Eclipse legal have asked that files you've derived from existing PTP work (e.g. ptp/etfw/tau/ui/TAUMakefileCombo.java) retain the original copyright header, if different from the current one. I'll go ahead and commit these, but if you could go through the files and make sure this is updated, it would be appreciated. Just attach a patch to this bug.
Comment 10 Chris Navarro CLA 2013-03-13 14:29:32 EDT
For the example you mentioned, TAUMakefileCombo, the original class didn't list a copyright. This might be something Wyatt needs to address because there are a handful of other ETFw/TAU classes that are missing headers. 

Once you commit my patches, I'll fix the classes that do have copyrights so my derived classes retain the original and I'll email Wyatt to see if he can take a look at other classes that are missing copyrights.
Comment 11 Greg Watson CLA 2013-03-13 14:41:41 EDT
Committed to master.
Comment 12 Greg Watson CLA 2013-03-13 14:42:38 EDT
(In reply to comment #10)
> Once you commit my patches, I'll fix the classes that do have copyrights so my
> derived classes retain the original and I'll email Wyatt to see if he can take a
> look at other classes that are missing copyrights.

That'd be great. Thanks!
Comment 13 Greg Watson CLA 2013-03-14 11:15:01 EDT
Chris, rather than introduce two new plugins, would you have any objections if I moved the etfw.jaxb.contrib xml files to the etfw.tau.ui plugin (or should perfsuite fo somewhere else)? Note that ppw is no longer included in the PTP build, so I'll remove this altogether. Thanks.
Comment 14 Greg Watson CLA 2013-03-14 11:28:04 EDT
Actually, probably the org.eclipse.ptp.etfw.tau plugin would make more sense.
Comment 15 Chris Navarro CLA 2013-03-14 11:30:24 EDT
I was trying to follow the pattern of the target configs (not really sure how many performance tools there will be), but perhaps to limit new plugins you can move the tau xml as you suggested (to etfw.tau.ui since it has custom widgets) and maybe tools like perfsuite which require no custom widgets can go into a new folder (contrib) inside the etfw.jaxb plugin. In the future all new tools that don't require custom widgets could just go in the etfw.jax contrib folder.
Comment 16 Chris Navarro CLA 2013-03-14 11:35:34 EDT
Also, I've tested out the commits from this bug and everything looks to be working as expected. I've contacted Wyatt and he will update the class copyrights and once that is done I'll attach patches to address that.
Comment 17 Greg Watson CLA 2013-03-15 11:01:00 EDT
Ok, I've moved the files. Let me know if I've broken anything. 

I also took the liberty of moving schemas to the 'schemas' folders and renamed the 'toolsxml' folder to 'data' for consistency.
Comment 18 Chris Navarro CLA 2013-03-15 15:26:57 EDT
Two things that I've noticed: 

1) The ETFWCoreConstants.java wasn't updated to point at the new folder where the etfw_tool_type.xsd schema is located. It's still pointing at data/etfw_tool_type.xsd so it can't find the schema to unmarshall the xml. 

2) The plugin.xml for org.eclipse.ptp.etfw.jaxb needs to add the extension "org.eclipse.ptp.etfw.jaxb.workflows" and create a new extension that points at the perfsuite-tool.xml.
Comment 19 Greg Watson CLA 2013-03-15 15:39:50 EDT
#1 should be fixed now. What is the workflow in #2 used for? Is it a replacement for an old type workflow?
Comment 20 Chris Navarro CLA 2013-03-15 15:44:02 EDT
Persuite is another profiling tool (open source, developed at NCSA) that I messed around with while working on the ETFw framework. The original developer never got it working with the previous ETFw so Jay had me take a look at it while I was working on the transition to JAXB. More details here: 
http://perfsuite.ncsa.illinois.edu/
Comment 21 Greg Watson CLA 2013-03-15 15:49:01 EDT
Cool. Can you open a separate bug and attach the file? I want to make sure you get the credit.
Comment 22 Chris Navarro CLA 2013-05-22 16:00:03 EDT
fixed - committed to master