Skip to content

Commit

Permalink
use https dtd url
Browse files Browse the repository at this point in the history
  • Loading branch information
missedone committed Mar 10, 2020
1 parent cd45e8c commit 2e97345
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TestNG for Eclipse Plugin

<a href="http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1549" class="drag" title="Drag to your running Eclipse workspace."><img class="img-responsive" src="https://marketplace.eclipse.org/sites/all/themes/solstice/public/images/marketplace/btn-install.png" alt="Drag to your running Eclipse workspace." /></a>

see more at http://testng.org/doc/download.html
see more at https://testng.org/doc/download.html

### Install Snapshot

Expand Down Expand Up @@ -61,7 +61,7 @@ The full changelog is [here](CHANGES.md)

## User documentation

The documentation for this plug-in can be found at http://testng.org/doc/eclipse.html
The documentation for this plug-in can be found at https://testng.org/doc/eclipse.html

## Build

Expand Down
14 changes: 7 additions & 7 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ Troubleshooting
**Note that, https://dl.bintray.com/testng-team/testng-eclipse/ is the official update site for TestNG Eclipse Plugin**

If you failed to install TestNG Eclipse Plugin with following error:
* Unable to read repository at http://beust.com/eclipse/content.xml.
* HTTP Service 'Service Unavailable': http://beust.com/eclipse-beta/content.xml
* An error occurred while collecting items to be installed session context was:(profile=epp.package.committers, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://beust.com/eclipse/updatesites/6.11.0.201703011520/plugins/org.testng.eclipse_6.11.0.201703011520.jar. Read timed out
* Unable to read repository at https://beust.com/eclipse/content.xml.
* HTTP Service 'Service Unavailable': https://beust.com/eclipse-beta/content.xml
* An error occurred while collecting items to be installed session context was:(profile=epp.package.committers, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at https://beust.com/eclipse/updatesites/6.11.0.201703011520/plugins/org.testng.eclipse_6.11.0.201703011520.jar. Read timed out

You can follow thses steps try to fix/bypass the problem:
* Check if you have any http proxy setting, or behind the company firewall, make you can access the update site: `http://beust.com/eclipse`
* Make sure your network can reach `http://dl.bintray.com/testng-team/testng-eclipse-release/` (the main entrypoint http://beust.com/eclipse redirects to it)
* Check if you have any http proxy setting, or behind the company firewall, make you can access the update site: `https://beust.com/eclipse`
* Make sure your network can reach `https://dl.bintray.com/testng-team/testng-eclipse-release/` (the main entrypoint https://beust.com/eclipse redirects to it)
* Add vmargs '-Djava.net.preferIPv4Stack=true' to Eclipse config.ini, read the wiki [[1]](https://wiki.eclipse.org/Eclipse.ini) for the detail.
* Retry two or more times, if still can't install, it could be the site http://beust.com temporarily unavailable, please install from the updatesite: `http://dl.bintray.com/testng-team/testng-eclipse-release/`
* Or, for whatever reason, you can't access either `http://beust.com/eclipse` or `http://dl.bintray.com/testng-team/testng-eclipse-release/` directly, you can download the [offline updatesite](https://github.com/cbeust/testng-eclipse#update-sites), then copy to your workstation.
* Retry two or more times, if still can't install, it could be the site https://beust.com temporarily unavailable, please install from the updatesite: `http://dl.bintray.com/testng-team/testng-eclipse-release/`
* Or, for whatever reason, you can't access either `https://beust.com/eclipse` or `http://dl.bintray.com/testng-team/testng-eclipse-release/` directly, you can download the [offline updatesite](https://github.com/cbeust/testng-eclipse#update-sites), then copy to your workstation.


## TestNG Eclipse Plugin not showing up
Expand Down
2 changes: 1 addition & 1 deletion testng-eclipse-feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version="7.1.0.qualifier"
provider-name="Cedric Beust">

<description url="http://testng.org">
<description url="https://testng.org">
TestNG plug-in for Eclipse.
</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public abstract class TestNGPluginConstants {
public static final String TESTNG_DTD = "testng-1.0.dtd";

/** The URL to the deprecated TestNG DTD. */
public static final String DEPRECATED_TESTNG_DTD_URL = "http://beust.com/testng/" + TESTNG_DTD;
public static final String DEPRECATED_TESTNG_DTD_URL = "https://beust.com/testng/" + TESTNG_DTD;

/** The URL to the TestNG DTD. */
public static final String TESTNG_DTD_URL = "http://testng.org/" + TESTNG_DTD;
public static final String TESTNG_DTD_URL = "https://testng.org/" + TESTNG_DTD;

private TestNGPluginConstants() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected static IFile showSelectionDialog(IResource[] choices) {
}

protected static IResource[] searchSuites(IResource[] scopeResources) {
ISearchQuery query= new FileSearchQuery("<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\" >",
ISearchQuery query= new FileSearchQuery("<!DOCTYPE suite SYSTEM \"https://testng.org/testng-1.0.dtd\" >",
false /*regexp*/ ,
false /*casesensitive*/,
FileTextSearchScope.newSearchScope(scopeResources, new String[] {"*.xml"}, false));
Expand Down
4 changes: 2 additions & 2 deletions testng-maven-eclipse-feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
version="7.1.0.qualifier"
provider-name="%feature.provider">

<description url="http://testng.org">
<description url="https://testng.org">
TestNG plug-in with M2E integration for Eclipse.
</description>

<copyright url="http://beust.com">
<copyright url="https://beust.com">
Copyright 2004-2016 Cedric Beust.
</copyright>

Expand Down

0 comments on commit 2e97345

Please sign in to comment.