|[dsdp-tm-dev] Re: Is it ok to copy some private method from eclipse unit test plugins?|
Hi Xuan,as we are licensing the new unit tests under EPL, it is perfectly OK to copy & paste any other code that is also licensed under EPL. Since everything in all Eclipse Projects is EPL, you can just go and take the code.
Please do remember, though, that the original author still has the rights on the code and just licenses it to us. Therefore, we need to do a minimal bit of record keeping: In the comments of your file, you should mention where you took the code from.
As an example of how I've done that record keeping when copying EPL stuff from somewhere else, see
ISshConstants.java (assembled parts of a class) KeyboardInteractiveDialog.java (took a whole class and copied it)SshConnectorService#createSession() (took a few methods from another class) Note how this is documented with the 2 methods as well as the copyright header
Note how I took the original copyright comment (C) IBM 2000,2007 and added my line at the end
("copied and adapted from team.cvs.ui") Cheers Martin Xuan Chen schrieb:
Hi Martin,Just a quick question. I took a look at the testcases you refer me to, and found some of the helper functions are useful when I create my own test source files/folders. Just wondering if it is ok that I copy/paste some of those methods into my own testcases?The classes I am interested in is: org.eclipse.core.tests.internal.localstore.LocalStoreTest org.eclipse.core.tests._harness_.CoreTest org.eclipse.core.tests.filesystem.FileStoreTest Thanks, Xuan Chen, Problem Determination Tools for iSeries (905) 413-3769 T/L 969-3769 xuanchen@xxxxxxxxxx
-- Martin Oberhuber Wind River Systems, Inc. Target Management Project Lead, DSDP PMC Member http://www.eclipse.org/dsdp/tm
Back to the top