Skip to content

Commit

Permalink
attach the source code jar for "TestNG Library"
Browse files Browse the repository at this point in the history
  • Loading branch information
missedone committed Jan 5, 2012
1 parent 534d788 commit 6dd335f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added lib/testng-sources.jar
Binary file not shown.
1 change: 1 addition & 0 deletions src/main/org/testng/eclipse/TestNGMessages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ AlternateLaunchConfigurationTab.jdk14.sourcedir=Source directories selection
AlternateLaunchConfigurationTab.jdk14.selection=Test using javadoc annotation require source directories

TestNG.jdk15.library=lib/testng.jar
TestNG.jdk15.sources=lib/testng-sources.jar

CheckBoxTable.groups.title=Available groups
CheckBoxTable.suites.title=Available suites
Expand Down
3 changes: 2 additions & 1 deletion src/main/org/testng/eclipse/buildpath/BuildPathSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public static IClasspathEntry getTestNGLibraryEntry() {
IPath bundleBase = getBundleLocation();
if (bundleBase != null) {
IPath jarLocation = bundleBase.append(ResourceUtil.getString("TestNG.jdk15.library")); //$NON-NLS-1$
IPath srcLocation = bundleBase.append(ResourceUtil.getString("TestNG.jdk15.sources")); //$NON-NLS-1$

return JavaCore.newLibraryEntry(jarLocation, null, null);
return JavaCore.newLibraryEntry(jarLocation, srcLocation, null);
}

return null;
Expand Down

0 comments on commit 6dd335f

Please sign in to comment.