From a20e6e43cab41cae10f5ce98ad33c008ffb8f5fa Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 16 Jun 2009 00:59:11 +0000 Subject: [PATCH] Because of the tricky license in SVNKit that has a viral effect, I'm moving it out into a separate plugin so that people can choose to remove it from their distributions. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18923 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Hudson.java | 4 - .../scm/SubversionChangeLogBuilder.java | 225 -- .../hudson/scm/SubversionChangeLogParser.java | 76 - .../hudson/scm/SubversionChangeLogSet.java | 308 --- .../scm/SubversionCredentialProvider.java | 64 - .../scm/SubversionEventHandlerImpl.java | 223 -- .../scm/SubversionRepositoryBrowser.java | 54 - .../scm/SubversionRepositoryStatus.java | 103 - .../main/java/hudson/scm/SubversionSCM.java | 1831 ----------------- .../java/hudson/scm/SubversionStatus.java | 65 - .../java/hudson/scm/SubversionTagAction.java | 226 -- .../scm/SubversionUpdateEventHandler.java | 113 - .../scm/SubversionWorkspaceSelector.java | 70 - .../hudson/scm/browsers/CollabNetSVN.java | 114 - .../java/hudson/scm/browsers/FishEyeSVN.java | 166 -- .../java/hudson/scm/browsers/Sventon.java | 157 -- .../java/hudson/scm/browsers/Sventon2.java | 180 -- .../java/hudson/scm/browsers/ViewSVN.java | 92 - .../main/java/hudson/scm/browsers/WebSVN.java | 139 -- .../hudson/tasks/MailAddressResolver.java | 13 - .../scm/SubversionChangeLogSet/digest.jelly | 76 - .../digest_de.properties | 23 - .../digest_fr.properties | 27 - .../digest_ja.properties | 27 - .../digest_nl.properties | 23 - .../digest_pt_BR.properties | 23 - .../digest_ru.properties | 23 - .../digest_tr.properties | 23 - .../scm/SubversionChangeLogSet/index.jelly | 68 - .../index_de.properties | 24 - .../index_fr.properties | 24 - .../index_ja.properties | 24 - .../index_nl.properties | 24 - .../index_pt_BR.properties | 24 - .../index_ru.properties | 24 - .../index_tr.properties | 24 - .../DescriptorImpl/credentialOK.jelly | 33 - .../DescriptorImpl/credentialOK_fr.properties | 25 - .../DescriptorImpl/credentialOK_ja.properties | 25 - .../DescriptorImpl/enterCredential.jelly | 78 - .../DescriptorImpl/enterCredential.properties | 26 - .../enterCredential_fr.properties | 37 - .../enterCredential_ja.properties | 36 - .../DescriptorImpl/url-help.jelly | 36 - .../DescriptorImpl/url-help.properties | 36 - .../DescriptorImpl/url-help_fr.properties | 36 - .../DescriptorImpl/url-help_ja.properties | 35 - .../hudson/scm/SubversionSCM/config.jelly | 56 - .../scm/SubversionSCM/config.properties | 25 - .../scm/SubversionSCM/config_de.properties | 33 - .../scm/SubversionSCM/config_fr.properties | 34 - .../scm/SubversionSCM/config_ja.properties | 33 - .../scm/SubversionSCM/config_nl.properties | 33 - .../scm/SubversionSCM/config_pt_BR.properties | 29 - .../scm/SubversionSCM/config_ru.properties | 32 - .../scm/SubversionSCM/config_tr.properties | 32 - .../hudson/scm/SubversionSCM/help.html | 5 - .../scm/SubversionTagAction/tagForm.jelly | 107 - .../SubversionTagAction/tagForm_de.properties | 26 - .../SubversionTagAction/tagForm_fr.properties | 27 - .../SubversionTagAction/tagForm_ja.properties | 27 - .../SubversionTagAction/tagForm_nl.properties | 26 - .../tagForm_pt_BR.properties | 26 - .../SubversionTagAction/tagForm_ru.properties | 26 - .../SubversionTagAction/tagForm_tr.properties | 27 - .../scm/browsers/CollabNetSVN/config.jelly | 30 - .../scm/browsers/FishEyeSVN/config.jelly | 33 - .../browsers/FishEyeSVN/config_fr.properties | 24 - .../browsers/FishEyeSVN/config_ja.properties | 24 - .../hudson/scm/browsers/Sventon/config.jelly | 32 - .../scm/browsers/Sventon/config_fr.properties | 24 - .../scm/browsers/Sventon/config_ja.properties | 24 - .../scm/browsers/Sventon/config_nl.properties | 23 - .../hudson/scm/browsers/Sventon2/config.jelly | 32 - .../browsers/Sventon2/config_fr.properties | 24 - .../browsers/Sventon2/config_ja.properties | 24 - .../browsers/Sventon2/config_nl.properties | 23 - .../hudson/scm/browsers/ViewSVN/config.jelly | 29 - .../hudson/scm/browsers/WebSVN/config.jelly | 29 - .../java/hudson/scm/SubversionSCMTest.java | 54 - 80 files changed, 6140 deletions(-) delete mode 100644 core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java delete mode 100644 core/src/main/java/hudson/scm/SubversionChangeLogParser.java delete mode 100644 core/src/main/java/hudson/scm/SubversionChangeLogSet.java delete mode 100644 core/src/main/java/hudson/scm/SubversionCredentialProvider.java delete mode 100644 core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java delete mode 100644 core/src/main/java/hudson/scm/SubversionRepositoryBrowser.java delete mode 100644 core/src/main/java/hudson/scm/SubversionRepositoryStatus.java delete mode 100644 core/src/main/java/hudson/scm/SubversionSCM.java delete mode 100644 core/src/main/java/hudson/scm/SubversionStatus.java delete mode 100644 core/src/main/java/hudson/scm/SubversionTagAction.java delete mode 100644 core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java delete mode 100644 core/src/main/java/hudson/scm/SubversionWorkspaceSelector.java delete mode 100644 core/src/main/java/hudson/scm/browsers/CollabNetSVN.java delete mode 100644 core/src/main/java/hudson/scm/browsers/FishEyeSVN.java delete mode 100644 core/src/main/java/hudson/scm/browsers/Sventon.java delete mode 100644 core/src/main/java/hudson/scm/browsers/Sventon2.java delete mode 100644 core/src/main/java/hudson/scm/browsers/ViewSVN.java delete mode 100644 core/src/main/java/hudson/scm/browsers/WebSVN.java delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_de.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_pt_BR.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ru.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_tr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_de.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_pt_BR.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ru.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_tr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_de.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_pt_BR.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_ru.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/config_tr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionSCM/help.html delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_de.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_pt_BR.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ru.properties delete mode 100644 core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_tr.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/CollabNetSVN/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon/config_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon/config_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon/config_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon2/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon2/config_fr.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon2/config_ja.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/Sventon2/config_nl.properties delete mode 100644 core/src/main/resources/hudson/scm/browsers/ViewSVN/config.jelly delete mode 100644 core/src/main/resources/hudson/scm/browsers/WebSVN/config.jelly delete mode 100644 core/src/test/java/hudson/scm/SubversionSCMTest.java diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index b30248f06b..3f6454d8bc 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -65,7 +65,6 @@ import hudson.scm.CVSSCM; import hudson.scm.RepositoryBrowser; import hudson.scm.SCM; import hudson.scm.SCMDescriptor; -import hudson.scm.SubversionSCM; import hudson.search.CollectionSearchIndex; import hudson.search.SearchIndexBuilder; import hudson.security.ACL; @@ -552,9 +551,6 @@ public final class Hudson extends Node implements ItemGroup, Stapl LOGGER.log(Level.SEVERE, "Failed to load proxy configuration", e); } - // run the init code of SubversionSCM before we load plugins so that plugins can change SubversionWorkspaceSelector. - SubversionSCM.init(); - // load plugins. pluginManager = new PluginManager(context); pluginManager.initialize(); diff --git a/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java b/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java deleted file mode 100644 index 0a9617d3b6..0000000000 --- a/core/src/main/java/hudson/scm/SubversionChangeLogBuilder.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Daniel Dyer, Jean-Baptiste Quenot, Luca Domenico Milanesio, Renaud Bruyeron - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.model.AbstractBuild; -import hudson.model.BuildListener; -import hudson.model.Hudson; -import hudson.scm.SubversionSCM.ModuleLocation; -import hudson.FilePath; -import hudson.util.IOException2; -import hudson.remoting.VirtualChannel; -import hudson.FilePath.FileCallable; -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.SVNURL; -import org.tmatesoft.svn.core.ISVNLogEntryHandler; -import org.tmatesoft.svn.core.SVNLogEntry; -import org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider; -import org.tmatesoft.svn.core.wc.SVNClientManager; -import org.tmatesoft.svn.core.wc.SVNLogClient; -import org.tmatesoft.svn.core.wc.SVNRevision; -import org.tmatesoft.svn.core.wc.SVNWCClient; -import org.tmatesoft.svn.core.wc.SVNInfo; -import org.tmatesoft.svn.core.wc.xml.SVNXMLLogHandler; -import org.xml.sax.helpers.LocatorImpl; - -import javax.xml.transform.Result; -import javax.xml.transform.TransformerConfigurationException; -import javax.xml.transform.sax.SAXTransformerFactory; -import javax.xml.transform.sax.TransformerHandler; -import java.io.IOException; -import java.io.PrintStream; -import java.io.File; -import java.util.Map; -import java.util.Collection; - -/** - * Builds changelog.xml for {@link SubversionSCM}. - * - * @author Kohsuke Kawaguchi - */ -public final class SubversionChangeLogBuilder { - /** - * Revisions of the workspace before the update/checkout. - */ - private final Map previousRevisions; - /** - * Revisions of the workspace after the update/checkout. - */ - private final Map thisRevisions; - - private final BuildListener listener; - private final SubversionSCM scm; - private final AbstractBuild build; - - public SubversionChangeLogBuilder(AbstractBuild build, BuildListener listener, SubversionSCM scm) throws IOException { - previousRevisions = SubversionSCM.parseRevisionFile(build.getPreviousBuild()); - thisRevisions = SubversionSCM.parseRevisionFile(build); - this.listener = listener; - this.scm = scm; - this.build = build; - - } - - public boolean run(Collection externals, Result changeLog) throws IOException, InterruptedException { - boolean changelogFileCreated = false; - - final SVNClientManager manager = SubversionSCM.createSvnClientManager(); - try { - SVNLogClient svnlc = manager.getLogClient(); - TransformerHandler th = createTransformerHandler(); - th.setResult(changeLog); - SVNXMLLogHandler logHandler = new SVNXMLLogHandler(th); - // work around for http://svnkit.com/tracker/view.php?id=175 - th.setDocumentLocator(DUMMY_LOCATOR); - logHandler.startDocument(); - - for (ModuleLocation l : scm.getLocations(build)) { - changelogFileCreated |= buildModule(l.getURL(), svnlc, logHandler); - } - for(SubversionSCM.External ext : externals) { - changelogFileCreated |= buildModule( - getUrlForPath(build.getProject().getWorkspace().child(ext.path)), svnlc, logHandler); - } - - if(changelogFileCreated) { - logHandler.endDocument(); - } - - return changelogFileCreated; - } finally { - manager.dispose(); - } - } - - private String getUrlForPath(FilePath path) throws IOException, InterruptedException { - return path.act(new GetUrlForPath(createAuthenticationProvider())); - } - - private ISVNAuthenticationProvider createAuthenticationProvider() { - return Hudson.getInstance().getDescriptorByType(SubversionSCM.DescriptorImpl.class).createAuthenticationProvider(); - } - - private boolean buildModule(String url, SVNLogClient svnlc, SVNXMLLogHandler logHandler) throws IOException2 { - PrintStream logger = listener.getLogger(); - Long prevRev = previousRevisions.get(url); - if(prevRev==null) { - logger.println("no revision recorded for "+url+" in the previous build"); - return false; - } - Long thisRev = thisRevisions.get(url); - if (thisRev == null) { - listener.error("No revision found for URL: " + url + " in " + SubversionSCM.getRevisionFile(build) + ". Revision file contains: " + thisRevisions.keySet()); - return true; - } - if(thisRev.equals(prevRev)) { - logger.println("no change for "+url+" since the previous build"); - return false; - } - - try { - if(debug) - listener.getLogger().printf("Computing changelog of %1s from %2s to %3s\n", - SVNURL.parseURIEncoded(url), prevRev+1, thisRev); - svnlc.doLog(SVNURL.parseURIEncoded(url), - null, - SVNRevision.UNDEFINED, - SVNRevision.create(prevRev+1), - SVNRevision.create(thisRev), - false, // Don't stop on copy. - true, // Report paths. - 0, // Retrieve log entries for unlimited number of revisions. - debug ? new DebugSVNLogHandler(logHandler) : logHandler); - if(debug) - listener.getLogger().println("done"); - } catch (SVNException e) { - throw new IOException2("revision check failed on "+url,e); - } - return true; - } - - /** - * Filter {@link ISVNLogEntryHandler} that dumps information. Used only for debugging. - */ - private class DebugSVNLogHandler implements ISVNLogEntryHandler { - private final ISVNLogEntryHandler core; - - private DebugSVNLogHandler(ISVNLogEntryHandler core) { - this.core = core; - } - - public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { - listener.getLogger().println("SVNLogEntry="+logEntry); - core.handleLogEntry(logEntry); - } - } - - /** - * Creates an identity transformer. - */ - private static TransformerHandler createTransformerHandler() { - try { - return ((SAXTransformerFactory) SAXTransformerFactory.newInstance()).newTransformerHandler(); - } catch (TransformerConfigurationException e) { - throw new Error(e); // impossible - } - } - - private static final LocatorImpl DUMMY_LOCATOR = new LocatorImpl(); - - public static boolean debug = false; - - static { - DUMMY_LOCATOR.setLineNumber(-1); - DUMMY_LOCATOR.setColumnNumber(-1); - } - - private static class GetUrlForPath implements FileCallable { - private final ISVNAuthenticationProvider authProvider; - - public GetUrlForPath(ISVNAuthenticationProvider authProvider) { - this.authProvider = authProvider; - } - - public String invoke(File p, VirtualChannel channel) throws IOException { - final SVNClientManager manager = SubversionSCM.createSvnClientManager(authProvider); - try { - final SVNWCClient svnwc = manager.getWCClient(); - - SVNInfo info; - try { - info = svnwc.doInfo(p, SVNRevision.WORKING); - return info.getURL().toDecodedString(); - } catch (SVNException e) { - e.printStackTrace(); - return null; - } - } finally { - manager.dispose(); - } - } - - private static final long serialVersionUID = 1L; - } -} diff --git a/core/src/main/java/hudson/scm/SubversionChangeLogParser.java b/core/src/main/java/hudson/scm/SubversionChangeLogParser.java deleted file mode 100644 index afeaa0f2fd..0000000000 --- a/core/src/main/java/hudson/scm/SubversionChangeLogParser.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.model.AbstractBuild; -import hudson.scm.SubversionChangeLogSet.LogEntry; -import hudson.scm.SubversionChangeLogSet.Path; -import hudson.util.Digester2; -import hudson.util.IOException2; -import org.apache.commons.digester.Digester; -import org.xml.sax.SAXException; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; - -/** - * {@link ChangeLogParser} for Subversion. - * - * @author Kohsuke Kawaguchi - */ -public class SubversionChangeLogParser extends ChangeLogParser { - public SubversionChangeLogSet parse(AbstractBuild build, File changelogFile) throws IOException, SAXException { - // http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/ - - Digester digester = new Digester2(); - ArrayList r = new ArrayList(); - digester.push(r); - - digester.addObjectCreate("*/logentry", LogEntry.class); - digester.addSetProperties("*/logentry"); - digester.addBeanPropertySetter("*/logentry/author","user"); - digester.addBeanPropertySetter("*/logentry/date"); - digester.addBeanPropertySetter("*/logentry/msg"); - digester.addSetNext("*/logentry","add"); - - digester.addObjectCreate("*/logentry/paths/path", Path.class); - digester.addSetProperties("*/logentry/paths/path"); - digester.addBeanPropertySetter("*/logentry/paths/path","value"); - digester.addSetNext("*/logentry/paths/path","addPath"); - - try { - digester.parse(changelogFile); - } catch (IOException e) { - throw new IOException2("Failed to parse "+changelogFile,e); - } catch (SAXException e) { - throw new IOException2("Failed to parse "+changelogFile,e); - } - - return new SubversionChangeLogSet(build,r); - } - -} diff --git a/core/src/main/java/hudson/scm/SubversionChangeLogSet.java b/core/src/main/java/hudson/scm/SubversionChangeLogSet.java deleted file mode 100644 index 267983a5f6..0000000000 --- a/core/src/main/java/hudson/scm/SubversionChangeLogSet.java +++ /dev/null @@ -1,308 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Erik Ramfelt - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.model.AbstractBuild; -import hudson.model.User; -import hudson.scm.SubversionChangeLogSet.LogEntry; -import hudson.scm.SubversionSCM.ModuleLocation; - -import org.kohsuke.stapler.export.Exported; -import org.kohsuke.stapler.export.ExportedBean; - -import java.io.IOException; -import java.util.AbstractList; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Comparator; - -/** - * {@link ChangeLogSet} for Subversion. - * - * @author Kohsuke Kawaguchi - */ -public final class SubversionChangeLogSet extends ChangeLogSet { - private final List logs; - - /** - * @GuardedBy this - */ - private Map revisionMap; - - /*package*/ SubversionChangeLogSet(AbstractBuild build, List logs) { - super(build); - // we want recent changes first - Collections.sort(logs,new Comparator() { - public int compare(LogEntry a, LogEntry b) { - return b.getRevision()-a.getRevision(); - } - }); - this.logs = Collections.unmodifiableList(logs); - for (LogEntry log : logs) - log.setParent(this); - } - - public boolean isEmptySet() { - return logs.isEmpty(); - } - - public List getLogs() { - return logs; - } - - - public Iterator iterator() { - return logs.iterator(); - } - - @Override - public String getKind() { - return "svn"; - } - - public synchronized Map getRevisionMap() throws IOException { - if(revisionMap==null) - revisionMap = SubversionSCM.parseRevisionFile(build); - return revisionMap; - } - - @Exported - public List getRevisions() throws IOException { - List r = new ArrayList(); - for (Map.Entry e : getRevisionMap().entrySet()) - r.add(new RevisionInfo(e.getKey(),e.getValue())); - return r; - } - - @ExportedBean(defaultVisibility=999) - public static final class RevisionInfo { - @Exported public final String module; - @Exported public final long revision; - public RevisionInfo(String module, long revision) { - this.module = module; - this.revision = revision; - } - } - - /** - * One commit. - *

- * Setter methods are public only so that the objects can be constructed from Digester. - * So please consider this object read-only. - */ - public static class LogEntry extends ChangeLogSet.Entry { - private int revision; - private User author; - private String date; - private String msg; - private List paths = new ArrayList(); - - /** - * Gets the {@link SubversionChangeLogSet} to which this change set belongs. - */ - public SubversionChangeLogSet getParent() { - return (SubversionChangeLogSet)super.getParent(); - } - - /** - * Gets the revision of the commit. - * - *

- * If the commit made the repository revision 1532, this - * method returns 1532. - */ - @Exported - public int getRevision() { - return revision; - } - - public void setRevision(int revision) { - this.revision = revision; - } - - @Override - public User getAuthor() { - if(author==null) - return User.getUnknown(); - return author; - } - - @Override - public Collection getAffectedPaths() { - return new AbstractList() { - public String get(int index) { - return preparePath(paths.get(index).value); - } - public int size() { - return paths.size(); - } - }; - } - - private String preparePath(String path) { - SubversionSCM scm = (SubversionSCM) getParent().build.getProject().getScm(); - ModuleLocation[] locations = scm.getLocations(); - for (int i = 0; i < locations.length; i++) { - String commonPart = findCommonPart(locations[i].remote, path); - if (commonPart != null) { - if (path.startsWith("/")) { - path = path.substring(1); - } - String newPath = path.substring(commonPart.length()); - if (newPath.startsWith("/")) { - newPath = newPath.substring(1); - } - return newPath; - } - } - return path; - } - - private String findCommonPart(String folder, String filePath) { - if (folder == null || filePath == null) { - return null; - } - if (filePath.startsWith("/")) { - filePath = filePath.substring(1); - } - for (int i = 0; i < folder.length(); i++) { - String part = folder.substring(i); - if (filePath.startsWith(part)) { - return part; - } - } - return null; - } - - public void setUser(String author) { - this.author = User.get(author); - } - - @Exported - public String getUser() {// digester wants read/write property, even though it never reads. Duh. - return author.getDisplayName(); - } - - @Exported - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - @Override @Exported - public String getMsg() { - return msg; - } - - public void setMsg(String msg) { - this.msg = msg; - } - - public void addPath( Path p ) { - p.entry = this; - paths.add(p); - } - - /** - * Gets the files that are changed in this commit. - * @return - * can be empty but never null. - */ - @Exported - public List getPaths() { - return paths; - } - - @Override - public Collection getAffectedFiles() { - return paths; - } - } - - /** - * A file in a commit. - *

- * Setter methods are public only so that the objects can be constructed from Digester. - * So please consider this object read-only. - */ - @ExportedBean(defaultVisibility=999) - public static class Path implements AffectedFile { - private LogEntry entry; - private char action; - private String value; - - /** - * Gets the {@link LogEntry} of which this path is a member. - */ - public LogEntry getLogEntry() { - return entry; - } - - /** - * Sets the {@link LogEntry} of which this path is a member. - */ - public void setLogEntry(LogEntry entry) { - this.entry = entry; - } - - public void setAction(String action) { - this.action = action.charAt(0); - } - - /** - * Path in the repository. Such as /test/trunk/foo.c - */ - @Exported(name="file") - public String getValue() { - return value; - } - - /** - * Inherited from AffectedFile - */ - public String getPath() { - return getValue(); - } - - public void setValue(String value) { - this.value = value; - } - - @Exported - public EditType getEditType() { - if( action=='A' ) - return EditType.ADD; - if( action=='D' ) - return EditType.DELETE; - return EditType.EDIT; - } - } -} diff --git a/core/src/main/java/hudson/scm/SubversionCredentialProvider.java b/core/src/main/java/hudson/scm/SubversionCredentialProvider.java deleted file mode 100644 index d9d8c0daf5..0000000000 --- a/core/src/main/java/hudson/scm/SubversionCredentialProvider.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.ExtensionList; -import hudson.ExtensionPoint; -import hudson.Extension; -import hudson.model.Hudson; -import hudson.scm.SubversionSCM.DescriptorImpl.Credential; -import org.tmatesoft.svn.core.SVNURL; - -/** - * Extension point for programmatically providing a credential (such as username/password) for - * Subversion access. - * - *

- * Put {@link Extension} on your implementation to have it registered. - * - * @author Kohsuke Kawaguchi - * @since 1.301 - */ -public abstract class SubversionCredentialProvider implements ExtensionPoint { - /** - * Called whenever Hudson needs to connect to an authenticated subversion repository, - * to obtain a credential. - * - * @param realm - * This is a non-null string that represents the realm of authentication. - * @param url - * URL that is being accessed. Never null. - * @return - * null if the implementation doesn't understand the given realm. When null is returned, - * Hudson searches other sources of credentials to come up with one. - */ - public abstract Credential getCredential(SVNURL url, String realm); - - /** - * All regsitered instances. - */ - public static ExtensionList all() { - return Hudson.getInstance().getExtensionList(SubversionCredentialProvider.class); - } -} diff --git a/core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java b/core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java deleted file mode 100644 index 307f853b0f..0000000000 --- a/core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * ==================================================================== - * Copyright (c) 2004-2007 TMate Software Ltd. All rights reserved. - * - * This software is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at http://svnkit.com/license.html - * If newer versions of this license are posted there, you may use a - * newer version instead, at your option. - * ==================================================================== - */ -package hudson.scm; - -import org.tmatesoft.svn.core.SVNErrorCode; -import org.tmatesoft.svn.core.SVNErrorMessage; -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.internal.util.SVNPathUtil; -import org.tmatesoft.svn.core.internal.wc.SVNFileUtil; -import org.tmatesoft.svn.core.wc.SVNEvent; -import org.tmatesoft.svn.core.wc.SVNEventAction; -import org.tmatesoft.svn.core.wc.SVNEventAdapter; -import org.tmatesoft.svn.core.wc.SVNStatusType; -import org.tmatesoft.svn.core.wc.ISVNEventHandler; - -import java.io.File; -import java.io.IOException; -import java.io.PrintStream; - -/** - * {@link ISVNEventHandler} that emulates the SVN CLI behavior. - * - * @author Kohsuke Kawaguchi - */ -public class SubversionEventHandlerImpl extends SVNEventAdapter { - protected final PrintStream out; - - protected final File baseDir; - - public SubversionEventHandlerImpl(PrintStream out, File baseDir) { - this.out = out; - this.baseDir = baseDir; - } - - public void handleEvent(SVNEvent event, double progress) throws SVNException { - File file = event.getFile(); - String path = null; - if (file != null) { - try { - path = getRelativePath(file); - } catch (IOException e) { - throw new SVNException(SVNErrorMessage.create(SVNErrorCode.FS_GENERAL), e); - } - path = getLocalPath(path); - } - - SVNEventAction action = event.getAction(); - - {// commit notifications - if (action == SVNEventAction.COMMIT_ADDED) { - out.println("Adding "+path); - return; - } - if (action == SVNEventAction.COMMIT_DELETED) { - out.println("Deleting "+path); - return; - } - if (action == SVNEventAction.COMMIT_MODIFIED) { - out.println("Sending "+path); - return; - } - if (action == SVNEventAction.COMMIT_REPLACED) { - out.println("Replacing "+path); - return; - } - if (action == SVNEventAction.COMMIT_DELTA_SENT) { - out.println("Transmitting file data...."); - return; - } - } - - String pathChangeType = " "; - if (action == SVNEventAction.UPDATE_ADD) { - pathChangeType = "A"; - SVNStatusType contentsStatus = event.getContentsStatus(); - if(contentsStatus== SVNStatusType.UNCHANGED) { - // happens a lot with merges - pathChangeType = " "; - }else if (contentsStatus == SVNStatusType.CONFLICTED) { - pathChangeType = "C"; - } else if (contentsStatus == SVNStatusType.MERGED) { - pathChangeType = "G"; - } - } else if (action == SVNEventAction.UPDATE_DELETE) { - pathChangeType = "D"; - } else if (action == SVNEventAction.UPDATE_UPDATE) { - SVNStatusType contentsStatus = event.getContentsStatus(); - if (contentsStatus == SVNStatusType.CHANGED) { - /* - * the item was modified in the repository (got the changes - * from the repository - */ - pathChangeType = "U"; - }else if (contentsStatus == SVNStatusType.CONFLICTED) { - /* - * The file item is in a state of Conflict. That is, changes - * received from the repository during an update, overlap with - * local changes the user has in his working copy. - */ - pathChangeType = "C"; - } else if (contentsStatus == SVNStatusType.MERGED) { - /* - * The file item was merGed (those changes that came from the - * repository did not overlap local changes and were merged - * into the file). - */ - pathChangeType = "G"; - } - } else if (action == SVNEventAction.UPDATE_COMPLETED) { - // finished updating - out.println("At revision " + event.getRevision()); - return; - } else if (action == SVNEventAction.ADD){ - out.println("A " + path); - return; - } else if (action == SVNEventAction.DELETE){ - out.println("D " + path); - return; - } else if (action == SVNEventAction.LOCKED){ - out.println("L " + path); - return; - } else if (action == SVNEventAction.LOCK_FAILED){ - out.println("failed to lock " + path); - return; - } - - /* - * Now getting the status of properties of an item. SVNStatusType also - * contains information on the properties state. - */ - SVNStatusType propertiesStatus = event.getPropertiesStatus(); - String propertiesChangeType = " "; - if (propertiesStatus == SVNStatusType.CHANGED) { - propertiesChangeType = "U"; - } else if (propertiesStatus == SVNStatusType.CONFLICTED) { - propertiesChangeType = "C"; - } else if (propertiesStatus == SVNStatusType.MERGED) { - propertiesChangeType = "G"; - } - - String lockLabel = " "; - SVNStatusType lockType = event.getLockStatus(); - if (lockType == SVNStatusType.LOCK_UNLOCKED) { - // The lock is broken by someone. - lockLabel = "B"; - } - - if(pathChangeType.equals(" ") && propertiesChangeType.equals(" ") && lockLabel.equals(" ")) - // nothing to display here. - return; - - out.println(pathChangeType - + propertiesChangeType - + lockLabel - + " " - + path); - } - - public String getRelativePath(File file) throws IOException { - String inPath = file.getCanonicalPath().replace(File.separatorChar, '/'); - String basePath = baseDir.getCanonicalPath().replace(File.separatorChar, '/'); - String commonRoot = getCommonAncestor(inPath, basePath); - - String relativePath = inPath; - if (commonRoot != null) { - if (equals(inPath , commonRoot)) { - return ""; - } else if (startsWith(inPath, commonRoot + "/")) { - relativePath = inPath.substring(commonRoot.length() + 1); - } - } - if (relativePath.endsWith("/")) { - relativePath = relativePath.substring(0, relativePath.length() - 1); - } - return relativePath; - } - - private static String getCommonAncestor(String p1, String p2) { - if (SVNFileUtil.isWindows || SVNFileUtil.isOpenVMS) { - String ancestor = SVNPathUtil.getCommonPathAncestor(p1.toLowerCase(), p2.toLowerCase()); - if (equals(ancestor, p1)) { - return p1; - } else if (equals(ancestor, p2)) { - return p2; - } else if (startsWith(p1, ancestor)) { - return p1.substring(0, ancestor.length()); - } - return ancestor; - } - return SVNPathUtil.getCommonPathAncestor(p1, p2); - } - - private static boolean startsWith(String p1, String p2) { - if (SVNFileUtil.isWindows || SVNFileUtil.isOpenVMS) { - return p1.toLowerCase().startsWith(p2.toLowerCase()); - } - return p1.startsWith(p2); - } - - private static boolean equals(String p1, String p2) { - if (SVNFileUtil.isWindows || SVNFileUtil.isOpenVMS) { - return p1.toLowerCase().equals(p2.toLowerCase()); - } - return p1.equals(p2); - } - - public static String getLocalPath(String path) { - path = path.replace('/', File.separatorChar); - if ("".equals(path)) { - path = "."; - } - return path; - } -} diff --git a/core/src/main/java/hudson/scm/SubversionRepositoryBrowser.java b/core/src/main/java/hudson/scm/SubversionRepositoryBrowser.java deleted file mode 100644 index 9339331441..0000000000 --- a/core/src/main/java/hudson/scm/SubversionRepositoryBrowser.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import java.io.IOException; -import java.net.URL; - -/** - * {@link RepositoryBrowser} for Subversion. - * - * @author Kohsuke Kawaguchi - */ -public abstract class SubversionRepositoryBrowser extends RepositoryBrowser { - /** - * Determines the link to the diff between the version - * in the specified revision of {@link SubversionChangeLogSet.Path} to its previous version. - * - * @return - * null if the browser doesn't have any URL for diff. - */ - public abstract URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException; - - /** - * Determines the link to a single file under Subversion. - * This page should display all the past revisions of this file, etc. - * - * @return - * null if the browser doesn't have any suitable URL. - */ - public abstract URL getFileLink(SubversionChangeLogSet.Path path) throws IOException; - - private static final long serialVersionUID = 1L; -} diff --git a/core/src/main/java/hudson/scm/SubversionRepositoryStatus.java b/core/src/main/java/hudson/scm/SubversionRepositoryStatus.java deleted file mode 100644 index 83d5f8e2db..0000000000 --- a/core/src/main/java/hudson/scm/SubversionRepositoryStatus.java +++ /dev/null @@ -1,103 +0,0 @@ -package hudson.scm; - -import hudson.model.AbstractModelObject; -import hudson.model.AbstractProject; -import hudson.model.Hudson; -import hudson.scm.SubversionSCM.ModuleLocation; -import hudson.triggers.SCMTrigger; -import org.kohsuke.stapler.StaplerRequest; -import org.kohsuke.stapler.StaplerResponse; -import org.tmatesoft.svn.core.SVNException; - -import javax.servlet.ServletException; -import static javax.servlet.http.HttpServletResponse.SC_OK; -import java.io.BufferedReader; -import java.io.IOException; -import java.util.HashSet; -import java.util.Set; -import java.util.UUID; -import static java.util.logging.Level.FINE; -import static java.util.logging.Level.WARNING; -import java.util.logging.Logger; - -/** - * Per repository status. - * - * @author Kohsuke Kawaguchi - * @see SubversionStatus - */ -public class SubversionRepositoryStatus extends AbstractModelObject { - public final UUID uuid; - - public SubversionRepositoryStatus(UUID uuid) { - this.uuid = uuid; - } - - public String getDisplayName() { - return uuid.toString(); - } - - public String getSearchUrl() { - return uuid.toString(); - } - - /** - * Notify the commit to this repository. - * - *

- * Because this URL is not guarded, we can't really trust the data that's sent to us. But we intentionally - * don't protect this URL to simplify post-commit script set up. - */ - public void doNotifyCommit(StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { - requirePOST(); - - // compute the affected paths - Set affectedPath = new HashSet(); - String line; - while((line=new BufferedReader(req.getReader()).readLine())!=null) - affectedPath.add(line.substring(4)); - if(LOGGER.isLoggable(FINE)) - LOGGER.fine("Change reported to Subversion repository "+uuid+" on "+affectedPath); - - OUTER: - for (AbstractProject p : Hudson.getInstance().getItems(AbstractProject.class)) { - try { - SCM scm = p.getScm(); - if (!(scm instanceof SubversionSCM)) continue; - - SCMTrigger trigger = p.getTrigger(SCMTrigger.class); - if(trigger==null) continue; - - SubversionSCM sscm = (SubversionSCM) scm; - for (ModuleLocation loc : sscm.getLocations()) { - if(!loc.getUUID().equals(uuid)) continue; // different repository - - String m = loc.getSVNURL().getPath(); - String n = loc.getRepositoryRoot().getPath(); - if(!m.startsWith(n)) continue; // repository root should be a subpath of the module path, but be defensive - - String remaining = m.substring(n.length()); - if(remaining.startsWith("/")) remaining=remaining.substring(1); - String remainingSlash = remaining + '/'; - - for (String path : affectedPath) { - if(path.equals(remaining) /*for files*/ || path.startsWith(remainingSlash) /*for dirs*/) { - // this project is possibly changed. poll now. - // if any of the data we used was bogus, the trigger will not detect a chaange - LOGGER.fine("Scheduling the immediate polling of "+p); - trigger.run(); - - continue OUTER; - } - } - } - } catch (SVNException e) { - LOGGER.log(WARNING,"Failed to handle Subversion commit notification",e); - } - } - - rsp.setStatus(SC_OK); - } - - private static final Logger LOGGER = Logger.getLogger(SubversionRepositoryStatus.class.getName()); -} diff --git a/core/src/main/java/hudson/scm/SubversionSCM.java b/core/src/main/java/hudson/scm/SubversionSCM.java deleted file mode 100644 index 43cc640bb1..0000000000 --- a/core/src/main/java/hudson/scm/SubversionSCM.java +++ /dev/null @@ -1,1831 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Fulvio Cavarretta, Jean-Baptiste Quenot, Luca Domenico Milanesio, Renaud Bruyeron, Stephen Connolly, Tom Huybrechts - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import com.thoughtworks.xstream.XStream; -import com.trilead.ssh2.DebugLogger; -import com.trilead.ssh2.SCPClient; -import hudson.FilePath; -import hudson.FilePath.FileCallable; -import hudson.Launcher; -import hudson.Util; -import hudson.XmlFile; -import hudson.Functions; -import hudson.Extension; -import hudson.model.AbstractBuild; -import hudson.model.AbstractProject; -import hudson.model.BuildListener; -import hudson.model.Hudson; -import hudson.model.ParameterValue; -import hudson.model.ParametersAction; -import hudson.model.TaskListener; -import hudson.remoting.Callable; -import hudson.remoting.Channel; -import hudson.remoting.VirtualChannel; -import hudson.remoting.FastPipedInputStream; -import hudson.remoting.FastPipedOutputStream; -import hudson.triggers.SCMTrigger; -import hudson.util.EditDistance; -import hudson.util.IOException2; -import hudson.util.MultipartFormDataParser; -import hudson.util.Scrambler; -import hudson.util.StreamCopyThread; -import hudson.util.XStream2; -import hudson.util.FormValidation; -import org.apache.commons.fileupload.FileItem; -import org.apache.commons.io.FileUtils; -import org.apache.tools.ant.Project; -import org.apache.tools.ant.taskdefs.Chmod; -import org.kohsuke.stapler.StaplerRequest; -import org.kohsuke.stapler.StaplerResponse; -import org.kohsuke.stapler.QueryParameter; -import org.kohsuke.putty.PuTTYKey; -import org.tmatesoft.svn.core.SVNDirEntry; -import org.tmatesoft.svn.core.SVNErrorCode; -import org.tmatesoft.svn.core.SVNErrorMessage; -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.SVNNodeKind; -import org.tmatesoft.svn.core.SVNURL; -import org.tmatesoft.svn.core.SVNCancelException; -import org.tmatesoft.svn.core.ISVNLogEntryHandler; -import org.tmatesoft.svn.core.SVNLogEntry; -import org.tmatesoft.svn.core.SVNLogEntryPath; -import org.tmatesoft.svn.core.auth.ISVNAuthenticationManager; -import org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider; -import org.tmatesoft.svn.core.auth.SVNAuthentication; -import org.tmatesoft.svn.core.auth.SVNPasswordAuthentication; -import org.tmatesoft.svn.core.auth.SVNSSHAuthentication; -import org.tmatesoft.svn.core.auth.SVNSSLAuthentication; -import org.tmatesoft.svn.core.auth.SVNUserNameAuthentication; -import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory; -import org.tmatesoft.svn.core.internal.io.dav.http.DefaultHTTPConnectionFactory; -import org.tmatesoft.svn.core.internal.io.fs.FSRepositoryFactory; -import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; -import org.tmatesoft.svn.core.internal.util.SVNPathUtil; -import org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager; -import org.tmatesoft.svn.core.internal.wc.SVNErrorManager; -import org.tmatesoft.svn.core.internal.wc.SVNExternal; -import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory; -import org.tmatesoft.svn.core.io.SVNRepository; -import org.tmatesoft.svn.core.io.SVNRepositoryFactory; -import org.tmatesoft.svn.core.wc.SVNClientManager; -import org.tmatesoft.svn.core.wc.SVNInfo; -import org.tmatesoft.svn.core.wc.SVNRevision; -import org.tmatesoft.svn.core.wc.SVNUpdateClient; -import org.tmatesoft.svn.core.wc.SVNWCClient; -import org.tmatesoft.svn.core.wc.SVNWCUtil; -import org.tmatesoft.svn.core.wc.SVNLogClient; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletResponse; -import javax.xml.transform.stream.StreamResult; -import java.io.BufferedOutputStream; -import java.io.BufferedReader; -import java.io.File; -import java.io.FileOutputStream; -import java.io.FileReader; -import java.io.IOException; -import java.io.OutputStream; -import java.io.PrintStream; -import java.io.PrintWriter; -import java.io.Serializable; -import java.io.StringWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.Hashtable; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Random; -import java.util.StringTokenizer; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import java.util.regex.Pattern; -import java.util.regex.PatternSyntaxException; - -import net.sf.json.JSONObject; - -/** - * Subversion SCM. - * - *

Plugin Developer Notes

- *

- * Plugins that interact with Subversion can use {@link DescriptorImpl#createAuthenticationProvider()} - * so that it can use the credentials (username, password, etc.) that the user entered for Hudson. - * See the javadoc of this method for the precautions you need to take if you run Subversion operations - * remotely on slaves. - * - *

Implementation Notes

- *

- * Because this instance refers to some other classes that are not necessarily - * Java serializable (like {@link #browser}), remotable {@link FileCallable}s all - * need to be declared as static inner classes. - * - * @author Kohsuke Kawaguchi - */ -public class SubversionSCM extends SCM implements Serializable { - /** - * the locations field is used to store all configured SVN locations (with - * their local and remote part). Direct access to this filed should be - * avoided and the getLocations() method should be used instead. This is - * needed to make importing of old hudson-configurations possible as - * getLocations() will check if the modules field has been set and import - * the data. - * - * @since 1.91 - */ - private ModuleLocation[] locations = new ModuleLocation[0]; - - private boolean useUpdate; - private final SubversionRepositoryBrowser browser; - private String excludedRegions; - - // No longer in use but left for serialization compatibility. - @Deprecated - private String modules; - - /** - * @deprecated as of 1.286 - */ - public SubversionSCM(String[] remoteLocations, String[] localLocations, - boolean useUpdate, SubversionRepositoryBrowser browser) { - this(remoteLocations,localLocations, useUpdate, browser, null); - } - - public SubversionSCM(String[] remoteLocations, String[] localLocations, - boolean useUpdate, SubversionRepositoryBrowser browser, String excludedRegions) { - - List modules = new ArrayList(); - if (remoteLocations != null && localLocations != null) { - int entries = Math.min(remoteLocations.length, localLocations.length); - - for (int i = 0; i < entries; i++) { - // the remote (repository) location - String remoteLoc = nullify(remoteLocations[i]); - - if (remoteLoc != null) {// null if skipped - remoteLoc = Util.removeTrailingSlash(remoteLoc.trim()); - modules.add(new ModuleLocation(remoteLoc, nullify(localLocations[i]))); - } - } - } - locations = modules.toArray(new ModuleLocation[modules.size()]); - - this.useUpdate = useUpdate; - this.browser = browser; - this.excludedRegions = excludedRegions; - } - - /** - * Convenience constructor, especially during testing. - */ - public SubversionSCM(String svnUrl) { - this(new String[]{svnUrl},new String[]{null},true,null,null); - } - - /** - * @deprecated - * as of 1.91. Use {@link #getLocations()} instead. - */ - public String getModules() { - return null; - } - - /** - * list of all configured svn locations - * - * @since 1.91 - */ - public ModuleLocation[] getLocations() { - return getLocations(null); - } - - /** - * list of all configured svn locations, expanded according to - * build parameters values; - * - * @param build - * If non-null, variable expansions are performed against the build parameters. - * - * @since 1.252 - */ - public ModuleLocation[] getLocations(AbstractBuild build) { - // check if we've got a old location - if (modules != null) { - // import the old configuration - List oldLocations = new ArrayList(); - StringTokenizer tokens = new StringTokenizer(modules); - while (tokens.hasMoreTokens()) { - // the remote (repository location) - // the normalized name is always without the trailing '/' - String remoteLoc = Util.removeTrailingSlash(tokens.nextToken()); - - oldLocations.add(new ModuleLocation(remoteLoc, null)); - } - - locations = oldLocations.toArray(new ModuleLocation[oldLocations.size()]); - modules = null; - } - - if(build == null) - return locations; - - ModuleLocation[] outLocations = new ModuleLocation[locations.length]; - for (int i = 0; i < outLocations.length; i++) { - outLocations[i] = locations[i].getExpandedLocation(build); - } - - return outLocations; - } - - public boolean isUseUpdate() { - return useUpdate; - } - - @Override - public SubversionRepositoryBrowser getBrowser() { - return browser; - } - - public String getExcludedRegions() { - return excludedRegions; - } - - public String[] getExcludedRegionsNormalized() { - return excludedRegions == null ? null : excludedRegions.split("[\\r\\n]+"); - } - - private Pattern[] getExcludedRegionsPatterns() { - String[] excludedRegions = getExcludedRegionsNormalized(); - if (excludedRegions != null) { - Pattern[] patterns = new Pattern[excludedRegions.length]; - - int i = 0; - for (String excludedRegion : excludedRegions) { - patterns[i++] = Pattern.compile(excludedRegion); - } - - return patterns; - } - - return null; - } - - /** - * Sets the SVN_REVISION environment variable during the build. - */ - @Override - public void buildEnvVars(AbstractBuild build, Map env) { - super.buildEnvVars(build, env); - - ModuleLocation[] locations = getLocations(build); - - try { - Map revisions = parseRevisionFile(build); - if(locations.length==1) { - Long rev = revisions.get(locations[0].remote); - if(rev!=null) - env.put("SVN_REVISION",rev.toString()); - } - // it's not clear what to do if there are more than one modules. - // if we always return locations[0].remote, it'll be difficult - // to change this later (to something more sensible, such as - // choosing the "root module" or whatever), so let's not set - // anything for now. - // besides, one can always use 'svnversion' to obtain the revision more explicitly. - } catch (IOException e) { - // ignore this error - } - } - - /** - * Called after checkout/update has finished to compute the changelog. - */ - private boolean calcChangeLog(AbstractBuild build, File changelogFile, BuildListener listener, List externals) throws IOException, InterruptedException { - if(build.getPreviousBuild()==null) { - // nothing to compare against - return createEmptyChangeLog(changelogFile, listener, "log"); - } - - // some users reported that the file gets created with size 0. I suspect - // maybe some XSLT engine doesn't close the stream properly. - // so let's do it by ourselves to be really sure that the stream gets closed. - OutputStream os = new BufferedOutputStream(new FileOutputStream(changelogFile)); - boolean created; - try { - created = new SubversionChangeLogBuilder(build, listener, this).run(externals, new StreamResult(os)); - } finally { - os.close(); - } - if(!created) - createEmptyChangeLog(changelogFile, listener, "log"); - - return true; - } - - - /** - * Reads the revision file of the specified build. - * - * @return - * map from {@link SvnInfo#url Subversion URL} to its revision. - */ - /*package*/ static Map parseRevisionFile(AbstractBuild build) throws IOException { - Map revisions = new HashMap(); // module -> revision - {// read the revision file of the last build - File file = getRevisionFile(build); - if(!file.exists()) - // nothing to compare against - return revisions; - - BufferedReader br = new BufferedReader(new FileReader(file)); - try { - String line; - while((line=br.readLine())!=null) { - int index = line.lastIndexOf('/'); - if(index<0) { - continue; // invalid line? - } - try { - revisions.put(line.substring(0,index), Long.parseLong(line.substring(index+1))); - } catch (NumberFormatException e) { - // perhaps a corrupted line. ignore - } - } - } finally { - br.close(); - } - } - - return revisions; - } - - /** - * Parses the file that stores the locations in the workspace where modules loaded by svn:external - * is placed. - * - *

- * Note that the format of the file has changed in 1.180 from simple text file to XML. - * - * @return - * immutable list. Can be empty but never null. - */ - /*package*/ static List parseExternalsFile(AbstractProject project) throws IOException { - File file = getExternalsFile(project); - if(file.exists()) { - try { - return (List)new XmlFile(External.XSTREAM,file).read(); - } catch (IOException e) { - // in < 1.180 this file was a text file, so it may fail to parse as XML, - // in which case let's just fall back - } - } - - return Collections.emptyList(); - } - - /** - * Polling can happen on the master and does not require a workspace. - */ - @Override - public boolean requiresWorkspaceForPolling() { - return false; - } - - public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, final BuildListener listener, File changelogFile) throws IOException, InterruptedException { - List externals = checkout(build,workspace,listener); - - if(externals==null) - return false; - - // write out the revision file - PrintWriter w = new PrintWriter(new FileOutputStream(getRevisionFile(build))); - try { - Map revMap = workspace.act(new BuildRevisionMapTask(build, this, listener, externals)); - for (Entry e : revMap.entrySet()) { - w.println( e.getKey() +'/'+ e.getValue().revision ); - } - build.addAction(new SubversionTagAction(build,revMap.values())); - } finally { - w.close(); - } - - // write out the externals info - new XmlFile(External.XSTREAM,getExternalsFile(build.getProject())).write(externals); - - return calcChangeLog(build, changelogFile, listener, externals); - } - - /** - * Performs the checkout or update, depending on the configuration and workspace state. - * - *

- * Use canonical path to avoid SVNKit/symlink problem as described in - * https://wiki.svnkit.com/SVNKit_FAQ - * - * @return null - * if the operation failed. Otherwise the set of local workspace paths - * (relative to the workspace root) that has loaded due to svn:external. - */ - private List checkout(AbstractBuild build, FilePath workspace, TaskListener listener) throws IOException, InterruptedException { - try { - - if (!repositoryLocationsExist(build, listener) && build.getProject().getLastSuccessfulBuild()!=null) { - // Disable this project, see issue #763 - // but only do so if there was at least some successful build, - // to make sure that initial configuration error won't disable the build. see issue #1567 - - listener.getLogger().println("One or more repository locations do not exist anymore for " + build.getProject().getName() + ", project will be disabled."); - build.getProject().makeDisabled(true); - return null; - } - } catch (SVNException e) { - e.printStackTrace(listener.error(e.getMessage())); - return null; - } - Boolean isUpdatable = useUpdate && workspace.act(new IsUpdatableTask(build, this, listener)); - return workspace.act(new CheckOutTask(build, this, build.getTimestamp().getTime(), isUpdatable, listener)); - } - - - /** - * Either run "svn co" or "svn up" equivalent. - */ - private static class CheckOutTask implements FileCallable> { - private final ISVNAuthenticationProvider authProvider; - private final Date timestamp; - // true to "svn update", false to "svn checkout". - private boolean update; - private final TaskListener listener; - private final ModuleLocation[] locations; - - public CheckOutTask(AbstractBuild build, SubversionSCM parent, Date timestamp, boolean update, TaskListener listener) { - this.authProvider = parent.getDescriptor().createAuthenticationProvider(); - this.timestamp = timestamp; - this.update = update; - this.listener = listener; - this.locations = parent.getLocations(build); - } - - public List invoke(File ws, VirtualChannel channel) throws IOException { - final SVNClientManager manager = createSvnClientManager(authProvider); - try { - final SVNUpdateClient svnuc = manager.getUpdateClient(); - final List externals = new ArrayList(); // store discovered externals to here - final SVNRevision revision = SVNRevision.create(timestamp); - if(update) { - for (final ModuleLocation l : locations) { - try { - listener.getLogger().println("Updating "+ l.remote); - - File local = new File(ws, l.getLocalDir()); - svnuc.setEventHandler(new SubversionUpdateEventHandler(listener.getLogger(), externals,local,l.getLocalDir())); - svnuc.doUpdate(local.getCanonicalFile(), l.getRevision(revision), true); - - } catch (final SVNException e) { - if(e.getErrorMessage().getErrorCode()== SVNErrorCode.WC_LOCKED) { - // work space locked. try fresh check out - listener.getLogger().println("Workspace appear to be locked, so getting a fresh workspace"); - update = false; - return invoke(ws,channel); - } - if(e.getErrorMessage().getErrorCode()== SVNErrorCode.WC_OBSTRUCTED_UPDATE) { - // HUDSON-1882. If existence of local files cause an update to fail, - // revert to fresh check out - listener.getLogger().println(e.getMessage()); // show why this happened. Sometimes this is caused by having a build artifact in the repository. - listener.getLogger().println("Updated failed due to local files. Getting a fresh workspace"); - update = false; - return invoke(ws,channel); - } - - e.printStackTrace(listener.error("Failed to update "+l.remote)); - // trouble-shooting probe for #591 - if(e.getErrorMessage().getErrorCode()== SVNErrorCode.WC_NOT_LOCKED) { - listener.getLogger().println("Polled jobs are "+ Hudson.getInstance().getDescriptorByType(SCMTrigger.DescriptorImpl.class).getItemsBeingPolled()); - } - return null; - } - } - } else { - Util.deleteContentsRecursive(ws); - - // buffer the output by a separate thread so that the update operation - // won't be blocked by the remoting of the data - FastPipedOutputStream pos = new FastPipedOutputStream(); - StreamCopyThread sct = new StreamCopyThread("svn log copier", new FastPipedInputStream(pos), listener.getLogger()); - sct.start(); - - for (final ModuleLocation l : locations) { - try { - listener.getLogger().println("Checking out "+l.remote); - - File local = new File(ws, l.getLocalDir()); - svnuc.setEventHandler(new SubversionUpdateEventHandler(new PrintStream(pos), externals, local, l.getLocalDir())); - svnuc.doCheckout(l.getSVNURL(), local.getCanonicalFile(), SVNRevision.HEAD, l.getRevision(revision), true); - } catch (SVNException e) { - e.printStackTrace(listener.error("Failed to check out "+l.remote)); - return null; - } - } - - pos.close(); - try { - sct.join(); // wait for all data to be piped. - } catch (InterruptedException e) { - throw new IOException2("interrupted",e); - } - } - - try { - for (final ModuleLocation l : locations) { - SVNDirEntry dir = manager.createRepository(l.getSVNURL(),true).info("/",-1); - if(dir!=null) {// I don't think this can ever be null, but be defensive - if(dir.getDate()!=null && dir.getDate().after(new Date())) // see http://www.nabble.com/NullPointerException-in-SVN-Checkout-Update-td21609781.html that reported this being null. - listener.getLogger().println(Messages.SubversionSCM_ClockOutOfSync()); - } - } - } catch (SVNException e) { - LOGGER.log(Level.INFO,"Failed to estimate the remote time stamp",e); - } - - return externals; - } finally { - manager.dispose(); - } - } - - private static final long serialVersionUID = 1L; - } - - /** - * Creates {@link SVNClientManager}. - * - *

- * This method must be executed on the slave where svn operations are performed. - * - * @param authProvider - * The value obtained from {@link DescriptorImpl#createAuthenticationProvider()}. - * If the operation runs on slaves, - * (and properly remoted, if the svn operations run on slaves.) - */ - public static SVNClientManager createSvnClientManager(ISVNAuthenticationProvider authProvider) { - ISVNAuthenticationManager sam = SVNWCUtil.createDefaultAuthenticationManager(); - sam.setAuthenticationProvider(authProvider); - return SVNClientManager.newInstance(SVNWCUtil.createDefaultOptions(true),sam); - } - - /** - * Creates {@link SVNClientManager} for code running on the master. - *

- * CAUTION: this code only works when invoked on master. On slaves, use - * {@link #createSvnClientManager(ISVNAuthenticationProvider)} and get {@link ISVNAuthenticationProvider} - * from the master via remoting. - */ - public static SVNClientManager createSvnClientManager() { - return createSvnClientManager(Hudson.getInstance().getDescriptorByType(DescriptorImpl.class).createAuthenticationProvider()); - } - - public static final class SvnInfo implements Serializable, Comparable { - /** - * Decoded repository URL. - */ - public final String url; - public final long revision; - - public SvnInfo(String url, long revision) { - this.url = url; - this.revision = revision; - } - - public SvnInfo(SVNInfo info) { - this( info.getURL().toDecodedString(), info.getCommittedRevision().getNumber() ); - } - - public SVNURL getSVNURL() throws SVNException { - return SVNURL.parseURIDecoded(url); - } - - public int compareTo(SvnInfo that) { - int r = this.url.compareTo(that.url); - if(r!=0) return r; - - if(this.revisionthat.revision) return +1; - return 0; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - - SvnInfo svnInfo = (SvnInfo) o; - - if (revision != svnInfo.revision) return false; - return url.equals(svnInfo.url); - - } - - public int hashCode() { - int result; - result = url.hashCode(); - result = 31 * result + (int) (revision ^ (revision >>> 32)); - return result; - } - - public String toString() { - return String.format("%s (rev.%s)",url,revision); - } - - private static final long serialVersionUID = 1L; - } - - /** - * Information about svn:external - */ - static final class External implements Serializable { - /** - * Relative path within the workspace where this svn:exteranls exist. - */ - final String path; - - /** - * External SVN URL to be fetched. - */ - final String url; - - /** - * If the svn:external link is with the -r option, its number. - * Otherwise -1 to indicate that the head revision of the external repository should be fetched. - */ - final long revision; - - /** - * @param modulePath - * The root of the current module that svn was checking out when it hits 'ext'. - * Since we call svnkit multiple times in general case to check out from multiple locations, - * we use this to make the path relative to the entire workspace, not just the particular module. - */ - External(String modulePath,SVNExternal ext) { - this.path = modulePath+'/'+ext.getPath(); - this.url = ext.getResolvedURL().toDecodedString(); - this.revision = ext.getRevision().getNumber(); - } - - /** - * Returns true if this reference is to a fixed revision. - */ - boolean isRevisionFixed() { - return revision!=-1; - } - - private static final long serialVersionUID = 1L; - - private static final XStream XSTREAM = new XStream2(); - static { - XSTREAM.alias("external",External.class); - } - } - - /** - * Gets the SVN metadata for the given local workspace. - * - * @param workspace - * The target to run "svn info". - */ - private static SVNInfo parseSvnInfo(File workspace, ISVNAuthenticationProvider authProvider) throws SVNException { - final SVNClientManager manager = createSvnClientManager(authProvider); - try { - final SVNWCClient svnWc = manager.getWCClient(); - return svnWc.doInfo(workspace,SVNRevision.WORKING); - } finally { - manager.dispose(); - } - } - - /** - * Gets the SVN metadata for the remote repository. - * - * @param remoteUrl - * The target to run "svn info". - */ - private static SVNInfo parseSvnInfo(SVNURL remoteUrl, ISVNAuthenticationProvider authProvider) throws SVNException { - final SVNClientManager manager = createSvnClientManager(authProvider); - try { - final SVNWCClient svnWc = manager.getWCClient(); - return svnWc.doInfo(remoteUrl, SVNRevision.HEAD, SVNRevision.HEAD); - } finally { - manager.dispose(); - } - } - - /** - * Checks .svn files in the workspace and finds out revisions of the modules - * that the workspace has. - * - * @return - * null if the parsing somehow fails. Otherwise a map from the repository URL to revisions. - */ - private static class BuildRevisionMapTask implements FileCallable> { - private final ISVNAuthenticationProvider authProvider; - private final TaskListener listener; - private final List externals; - private final ModuleLocation[] locations; - - public BuildRevisionMapTask(AbstractBuild build, SubversionSCM parent, TaskListener listener, List externals) { - this.authProvider = parent.getDescriptor().createAuthenticationProvider(); - this.listener = listener; - this.externals = externals; - this.locations = parent.getLocations(build); - } - - public Map invoke(File ws, VirtualChannel channel) throws IOException { - Map revisions = new HashMap(); - - final SVNClientManager manager = createSvnClientManager(authProvider); - try { - final SVNWCClient svnWc = manager.getWCClient(); - // invoke the "svn info" - for( ModuleLocation module : locations ) { - try { - SvnInfo info = new SvnInfo(svnWc.doInfo(new File(ws,module.getLocalDir()), SVNRevision.WORKING)); - revisions.put(info.url,info); - } catch (SVNException e) { - e.printStackTrace(listener.error("Failed to parse svn info for "+module.remote)); - } - } - for(External ext : externals){ - try { - SvnInfo info = new SvnInfo(svnWc.doInfo(new File(ws,ext.path),SVNRevision.WORKING)); - revisions.put(info.url,info); - } catch (SVNException e) { - e.printStackTrace(listener.error("Failed to parse svn info for external "+ext.url+" at "+ext.path)); - } - - } - - return revisions; - } finally { - manager.dispose(); - } - } - private static final long serialVersionUID = 1L; - } - - /** - * Gets the file that stores the revision. - */ - public static File getRevisionFile(AbstractBuild build) { - return new File(build.getRootDir(),"revision.txt"); - } - - /** - * Gets the file that stores the externals. - */ - private static File getExternalsFile(AbstractProject project) { - return new File(project.getRootDir(),"svnexternals.txt"); - } - - /** - * Returns true if we can use "svn update" instead of "svn checkout" - */ - private static class IsUpdatableTask implements FileCallable { - private final TaskListener listener; - private final ISVNAuthenticationProvider authProvider; - private final ModuleLocation[] locations; - - IsUpdatableTask(AbstractBuild build, SubversionSCM parent,TaskListener listener) { - this.authProvider = parent.getDescriptor().createAuthenticationProvider(); - this.listener = listener; - this.locations = parent.getLocations(build); - } - - public Boolean invoke(File ws, VirtualChannel channel) throws IOException { - for (ModuleLocation l : locations) { - String moduleName = l.getLocalDir(); - File module = new File(ws,moduleName).getCanonicalFile(); // canonicalize to remove ".." and ".". See #474 - - if(!module.exists()) { - listener.getLogger().println("Checking out a fresh workspace because "+module+" doesn't exist"); - return false; - } - - try { - SVNInfo svnkitInfo = parseSvnInfo(module, authProvider); - SvnInfo svnInfo = new SvnInfo(svnkitInfo); - - String url = l.getURL(); - if(!svnInfo.url.equals(url)) { - listener.getLogger().println("Checking out a fresh workspace because the workspace is not "+url); - return false; - } - } catch (SVNException e) { - listener.getLogger().println("Checking out a fresh workspace because Hudson failed to detect the current workspace "+module); - e.printStackTrace(listener.error(e.getMessage())); - return false; - } - } - return true; - } - private static final long serialVersionUID = 1L; - } - - public boolean pollChanges(AbstractProject project, Launcher launcher, - FilePath workspace, TaskListener listener) throws IOException, - InterruptedException { - AbstractBuild lastBuild = (AbstractBuild) project.getLastBuild(); - if (lastBuild == null) { - listener.getLogger().println( - "No existing build. Starting a new one"); - return true; - } - - try { - if (!repositoryLocationsExist(lastBuild, listener)) { - // Disable this project, see issue #763 - - listener.getLogger().println( - "One or more repository locations do not exist anymore for " - + project + ", project will be disabled."); - project.makeDisabled(true); - return false; - } - } catch (SVNException e) { - e.printStackTrace(listener.error(e.getMessage())); - return false; - } - - // current workspace revision - Map wsRev = parseRevisionFile(lastBuild); - List externals = parseExternalsFile(project); - - // are the locations checked out in the workspace consistent with the current configuration? - for( ModuleLocation loc : getLocations(lastBuild) ) { - if(!wsRev.containsKey(loc.getURL())) { - listener.getLogger().println("Workspace doesn't contain "+loc.getURL()+". Need a new build"); - return true; - } - } - - ISVNAuthenticationProvider authProvider = getDescriptor().createAuthenticationProvider(); - - // check the corresponding remote revision - OUTER: - for (Map.Entry localInfo : wsRev.entrySet()) { - // skip if this is an external reference to a fixed revision - String url = localInfo.getKey(); - - for (External ext : externals) - if(ext.url.equals(url) && ext.isRevisionFixed()) - continue OUTER; - - try { - final SVNURL decodedURL = SVNURL.parseURIDecoded(url); - SvnInfo remoteInfo = new SvnInfo(parseSvnInfo(decodedURL,authProvider)); - listener.getLogger().println(Messages.SubversionSCM_pollChanges_remoteRevisionAt(url,remoteInfo.revision)); - if(remoteInfo.revision > localInfo.getValue()) { - boolean changesFound = true; - Pattern[] excludedPatterns = getExcludedRegionsPatterns(); - if (excludedPatterns != null) { - SVNLogHandler handler = new SVNLogHandler(excludedPatterns); - final SVNClientManager manager = createSvnClientManager(authProvider); - try { - final SVNLogClient svnlc = manager.getLogClient(); - svnlc.doLog(decodedURL, null, SVNRevision.UNDEFINED, - SVNRevision.create(localInfo.getValue()+1), // get log entries from the local revision + 1 - SVNRevision.create(remoteInfo.revision), // to the remote revision - false, // Don't stop on copy. - true, // Report paths. - 0, // Retrieve log entries for unlimited number of revisions. - handler); - } finally { - manager.dispose(); - } - - changesFound = handler.isChangesFound(); - } - - if (changesFound) { - listener.getLogger().println(Messages.SubversionSCM_pollChanges_changedFrom(localInfo.getValue())); - return true; - } - } - } catch (SVNException e) { - e.printStackTrace(listener.error("Failed to check repository revision for "+ url)); - } - } - - return false; // no change - } - - private final class SVNLogHandler implements ISVNLogEntryHandler { - private boolean changesFound = false; - - private Pattern[] excludedPatterns; - - private SVNLogHandler(Pattern[] excludedPatterns) { - this.excludedPatterns = excludedPatterns; - } - - public boolean isChangesFound() { - return changesFound; - } - - /** - * Handles a log entry passed. - * Check for paths that should be excluded from triggering a build. - * If a path is not a path that should be excluded, set changesFound to true - * - * @param logEntry an {@link org.tmatesoft.svn.core.SVNLogEntry} object - * that represents per revision information - * (committed paths, log message, etc.) - * @throws org.tmatesoft.svn.core.SVNException - */ - public void handleLogEntry(SVNLogEntry logEntry) throws SVNException { - if (excludedPatterns != null && excludedPatterns.length > 0) { - Map changedPaths = logEntry.getChangedPaths(); - for (Object paths : changedPaths.values()) { - SVNLogEntryPath logEntryPath = (SVNLogEntryPath) paths; - String path = logEntryPath.getPath(); - - boolean patternMatched = false; - - for (Pattern pattern : excludedPatterns) { - if (pattern.matcher(path).matches()) { - patternMatched = true; - break; - } - } - - if (!patternMatched) { - changesFound = true; - break; - } - } - } else if (!logEntry.getChangedPaths().isEmpty()) { - // no excluded patterns and paths have changed, so just return true - changesFound = true; - } - } - } - - public ChangeLogParser createChangeLogParser() { - return new SubversionChangeLogParser(); - } - - - public DescriptorImpl getDescriptor() { - return (DescriptorImpl)super.getDescriptor(); - } - - public FilePath getModuleRoot(FilePath workspace) { - if (getLocations().length > 0) - return workspace.child(getLocations()[0].getLocalDir()); - return workspace; - } - - public FilePath[] getModuleRoots(FilePath workspace) { - final ModuleLocation[] moduleLocations = getLocations(); - if (moduleLocations.length > 0) { - FilePath[] moduleRoots = new FilePath[moduleLocations.length]; - for (int i = 0; i < moduleLocations.length; i++) { - moduleRoots[i] = workspace.child(moduleLocations[i].getLocalDir()); - } - return moduleRoots; - } - return new FilePath[] { getModuleRoot(workspace) }; - } - - private static String getLastPathComponent(String s) { - String[] tokens = s.split("/"); - return tokens[tokens.length-1]; // return the last token - } - - @Extension - public static class DescriptorImpl extends SCMDescriptor { - /** - * SVN authentication realm to its associated credentials. - */ - private final Map credentials = new Hashtable(); - - /** - * Stores {@link SVNAuthentication} for a single realm. - * - *

- * {@link Credential} holds data in a persistence-friendly way, - * and it's capable of creating {@link SVNAuthentication} object, - * to be passed to SVNKit. - */ - public static abstract class Credential implements Serializable { - /** - * @param kind - * One of the constants defined in {@link ISVNAuthenticationManager}, - * indicating what subype of {@link SVNAuthentication} is expected. - */ - public abstract SVNAuthentication createSVNAuthentication(String kind) throws SVNException; - } - - /** - * Username/password based authentication. - */ - private static final class PasswordCredential extends Credential { - private final String userName; - private final String password; // scrambled by base64 - - public PasswordCredential(String userName, String password) { - this.userName = userName; - this.password = Scrambler.scramble(password); - } - - @Override - public SVNAuthentication createSVNAuthentication(String kind) { - if(kind.equals(ISVNAuthenticationManager.SSH)) - return new SVNSSHAuthentication(userName,Scrambler.descramble(password),-1,false); - else - return new SVNPasswordAuthentication(userName,Scrambler.descramble(password),false); - } - } - - /** - * Publickey authentication for Subversion over SSH. - */ - private static final class SshPublicKeyCredential extends Credential { - private final String userName; - private final String passphrase; // scrambled by base64 - private final String id; - - /** - * @param keyFile - * stores SSH private key. The file will be copied. - */ - public SshPublicKeyCredential(String userName, String passphrase, File keyFile) throws SVNException { - this.userName = userName; - this.passphrase = Scrambler.scramble(passphrase); - - Random r = new Random(); - StringBuilder buf = new StringBuilder(); - for(int i=0;i<16;i++) - buf.append(Integer.toHexString(r.nextInt(16))); - this.id = buf.toString(); - - try { - FileUtils.copyFile(keyFile,getKeyFile()); - } catch (IOException e) { - throw new SVNException(SVNErrorMessage.create(SVNErrorCode.AUTHN_CREDS_UNAVAILABLE,"Unable to save private key"),e); - } - } - - /** - * Gets the location where the private key will be permanently stored. - */ - private File getKeyFile() { - File dir = new File(Hudson.getInstance().getRootDir(),"subversion-credentials"); - if(dir.mkdirs()) { - // make sure the directory exists. if we created it, try to set the permission to 600 - // since this is sensitive information - try { - Chmod chmod = new Chmod(); - chmod.setProject(new Project()); - chmod.setFile(dir); - chmod.setPerm("600"); - chmod.execute(); - } catch (Throwable e) { - // if we failed to set the permission, that's fine. - LOGGER.log(Level.WARNING, "Failed to set directory permission of "+dir,e); - } - } - return new File(dir,id); - } - - @Override - public SVNSSHAuthentication createSVNAuthentication(String kind) throws SVNException { - if(kind.equals(ISVNAuthenticationManager.SSH)) { - try { - Channel channel = Channel.current(); - String privateKey; - if(channel!=null) { - // remote - privateKey = channel.call(new Callable() { - public String call() throws IOException { - return FileUtils.readFileToString(getKeyFile(),"iso-8859-1"); - } - }); - } else { - privateKey = FileUtils.readFileToString(getKeyFile(),"iso-8859-1"); - } - return new SVNSSHAuthentication(userName, privateKey.toCharArray(), Scrambler.descramble(passphrase),-1,false); - } catch (IOException e) { - throw new SVNException(SVNErrorMessage.create(SVNErrorCode.AUTHN_CREDS_UNAVAILABLE,"Unable to load private key"),e); - } catch (InterruptedException e) { - throw new SVNException(SVNErrorMessage.create(SVNErrorCode.AUTHN_CREDS_UNAVAILABLE,"Unable to load private key"),e); - } - } else - return null; // unknown - } - } - - /** - * SSL client certificate based authentication. - */ - private static final class SslClientCertificateCredential extends Credential { - private final String password; // scrambled by base64 - - public SslClientCertificateCredential(File certificate, String password) { - this.password = Scrambler.scramble(password); - } - - @Override - public SVNAuthentication createSVNAuthentication(String kind) { - if(kind.equals(ISVNAuthenticationManager.SSL)) - return new SVNSSLAuthentication(null,Scrambler.descramble(password),false); - else - return null; // unexpected authentication type - } - } - - /** - * Remoting interface that allows remote {@link ISVNAuthenticationProvider} - * to read from local {@link DescriptorImpl#credentials}. - */ - private interface RemotableSVNAuthenticationProvider { - Credential getCredential(SVNURL url, String realm); - } - - /** - * There's no point in exporting multiple {@link RemotableSVNAuthenticationProviderImpl} instances, - * so let's just use one instance. - */ - private transient final RemotableSVNAuthenticationProviderImpl remotableProvider = new RemotableSVNAuthenticationProviderImpl(); - - private final class RemotableSVNAuthenticationProviderImpl implements RemotableSVNAuthenticationProvider, Serializable { - public Credential getCredential(SVNURL url, String realm) { - for (SubversionCredentialProvider p : SubversionCredentialProvider.all()) { - Credential c = p.getCredential(url,realm); - if(c!=null) { - LOGGER.fine(String.format("getCredential(%s)=>%s by %s",realm,c,p)); - return c; - } - } - LOGGER.fine(String.format("getCredential(%s)=>%s",realm,credentials.get(realm))); - return credentials.get(realm); - } - - /** - * When sent to the remote node, send a proxy. - */ - private Object writeReplace() { - return Channel.current().export(RemotableSVNAuthenticationProvider.class, this); - } - } - - /** - * See {@link DescriptorImpl#createAuthenticationProvider()}. - */ - private static final class SVNAuthenticationProviderImpl implements ISVNAuthenticationProvider, Serializable { - private final RemotableSVNAuthenticationProvider source; - - public SVNAuthenticationProviderImpl(RemotableSVNAuthenticationProvider source) { - this.source = source; - } - - public SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored) { - Credential cred = source.getCredential(url,realm); - LOGGER.fine(String.format("requestClientAuthentication(%s,%s,%s)=>%s",kind,url,realm,cred)); - - try { - SVNAuthentication auth=null; - if(cred!=null) - auth = cred.createSVNAuthentication(kind); - - if(auth==null && ISVNAuthenticationManager.USERNAME.equals(kind)) { - // this happens with file:// URL and svn+ssh (in this case this method gets invoked twice.) - // The base class does this, too. - // user auth shouldn't be null. - return new SVNUserNameAuthentication("",false); - } - - return auth; - } catch (SVNException e) { - LOGGER.log(Level.SEVERE, "Failed to authorize",e); - throw new RuntimeException("Failed to authorize",e); - } - } - - public int acceptServerAuthentication(SVNURL url, String realm, Object certificate, boolean resultMayBeStored) { - return ACCEPTED_TEMPORARY; - } - - private static final long serialVersionUID = 1L; - } - - public DescriptorImpl() { - super(SubversionRepositoryBrowser.class); - load(); - } - - protected DescriptorImpl(Class clazz, Class repositoryBrowser) { - super(clazz,repositoryBrowser); - } - - public String getDisplayName() { - return "Subversion"; - } - - public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException { - return new SubversionSCM( - req.getParameterValues("svn.location_remote"), - req.getParameterValues("svn.location_local"), - req.getParameter("svn_use_update") != null, - RepositoryBrowsers.createInstance(SubversionRepositoryBrowser.class, req, formData, "browser"), - req.getParameter("svn.excludedRegions")); - } - - /** - * Creates {@link ISVNAuthenticationProvider} backed by {@link #credentials}. - * This method must be invoked on the master, but the returned object is remotable. - * - *

- * Therefore, to access {@link ISVNAuthenticationProvider}, you need to call this method - * on the master, then pass the object to the slave side, then call - * {@link SubversionSCM#createSvnClientManager(ISVNAuthenticationProvider)} on the slave. - * - * @see SubversionSCM#createSvnClientManager(ISVNAuthenticationProvider) - */ - public ISVNAuthenticationProvider createAuthenticationProvider() { - return new SVNAuthenticationProviderImpl(remotableProvider); - } - - /** - * Submits the authentication info. - */ - // TODO: stapler should do multipart/form-data handling - public void doPostCredential(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { - Hudson.getInstance().checkPermission(Hudson.ADMINISTER); - - MultipartFormDataParser parser = new MultipartFormDataParser(req); - - if(Hudson.getInstance().isUseCrumbs() && !Hudson.getInstance().getCrumbIssuer().validateCrumb(req, parser)) { - rsp.sendError(HttpServletResponse.SC_FORBIDDEN,"No crumb found"); - } - - String url = parser.get("url"); - - String kind = parser.get("kind"); - int idx = Arrays.asList("","password","publickey","certificate").indexOf(kind); - - final String username = parser.get("username"+idx); - final String password = parser.get("password"+idx); - - - // SVNKit wants a key in a file - final File keyFile; - FileItem item=null; - if(idx <= 1) { - keyFile = null; - } else { - item = parser.getFileItem(kind.equals("publickey")?"privateKey":"certificate"); - keyFile = File.createTempFile("hudson","key"); - if(item!=null) { - try { - item.write(keyFile); - } catch (Exception e) { - throw new IOException2(e); - } - if(PuTTYKey.isPuTTYKeyFile(keyFile)) { - // TODO: we need a passphrase support - LOGGER.info("Converting "+keyFile+" from PuTTY format to OpenSSH format"); - new PuTTYKey(keyFile,null).toOpenSSH(keyFile); - } - } - } - - // we'll record what credential we are trying here. - StringWriter log = new StringWriter(); - final PrintWriter logWriter = new PrintWriter(log); - - try { - postCredential(url, username, password, keyFile, logWriter); - rsp.sendRedirect("credentialOK"); - } catch (SVNException e) { - logWriter.println("FAILED: "+e.getErrorMessage()); - req.setAttribute("message",log.toString()); - req.setAttribute("pre",true); - req.setAttribute("exception",e); - rsp.forward(Hudson.getInstance(),"error",req); - } finally { - if(keyFile!=null) - keyFile.delete(); - if(item!=null) - item.delete(); - } - } - - /** - * Submits the authentication info. - * - * This code is fairly ugly because of the way SVNKit handles credentials. - */ - public void postCredential(String url, final String username, final String password, final File keyFile, final PrintWriter logWriter) throws SVNException, IOException { - SVNRepository repository = null; - - try { - final boolean[] authenticationAttemped = new boolean[1]; - final boolean[] authenticationAcknowled = new boolean[1]; - - // the way it works with SVNKit is that - // 1) svnkit calls AuthenticationManager asking for a credential. - // this is when we can see the 'realm', which identifies the user domain. - // 2) DefaultSVNAuthenticationManager returns the username and password we set below - // 3) if the authentication is successful, svnkit calls back acknowledgeAuthentication - // (so we store the password info here) - repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url)); - repository.setTunnelProvider(SVNWCUtil.createDefaultOptions(true)); - repository.setAuthenticationManager(new DefaultSVNAuthenticationManager(SVNWCUtil.getDefaultConfigurationDirectory(), true, username, password, keyFile, password) { - Credential cred = null; - - @Override - public SVNAuthentication getFirstAuthentication(String kind, String realm, SVNURL url) throws SVNException { - authenticationAttemped[0] = true; - if (kind.equals(ISVNAuthenticationManager.USERNAME)) - // when using svn+ssh, svnkit first asks for ISVNAuthenticationManager.SSH - // authentication to connect via SSH, then calls this method one more time - // to get the user name. Perhaps svn takes user name on its own, separate - // from OS user name? In any case, we need to return the same user name. - // I don't set the cred field here, so that the 1st credential for ssh - // won't get clobbered. - return new SVNUserNameAuthentication(username, false); - if (kind.equals(ISVNAuthenticationManager.PASSWORD)) { - logWriter.println("Passing user name " + username + " and password you entered"); - cred = new PasswordCredential(username, password); - } - if (kind.equals(ISVNAuthenticationManager.SSH)) { - if (keyFile == null) { - logWriter.println("Passing user name " + username + " and password you entered to SSH"); - cred = new PasswordCredential(username, password); - } else { - logWriter.println("Attempting a public key authentication with username " + username); - cred = new SshPublicKeyCredential(username, password, keyFile); - } - } - if (kind.equals(ISVNAuthenticationManager.SSL)) { - logWriter.println("Attempting an SSL client certificate authentcation"); - cred = new SslClientCertificateCredential(keyFile, password); - } - - if (cred == null) { - logWriter.println("Unknown authentication method: " + kind); - return null; - } - return cred.createSVNAuthentication(kind); - } - - /** - * Getting here means the authentication tried in {@link #getFirstAuthentication(String, String, SVNURL)} - * didn't work. - */ - @Override - public SVNAuthentication getNextAuthentication(String kind, String realm, SVNURL url) throws SVNException { - SVNErrorManager.authenticationFailed("Authentication failed for " + url, null); - return null; - } - - @Override - public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException { - authenticationAcknowled[0] = true; - if (accepted) { - assert cred != null; - credentials.put(realm, cred); - save(); - } else { - logWriter.println("Failed to authenticate: " + errorMessage); - if (errorMessage.getCause() != null) - errorMessage.getCause().printStackTrace(logWriter); - } - super.acknowledgeAuthentication(accepted, kind, realm, errorMessage, authentication); - } - }); - repository.testConnection(); - - if(!authenticationAttemped[0]) { - logWriter.println("No authentication was attemped."); - throw new SVNCancelException(); - } - if (!authenticationAcknowled[0]) { - logWriter.println("Authentication was not acknowledged."); - throw new SVNCancelException(); - } - } finally { - if (repository != null) - repository.closeSession(); - } - } - - /** - * validate the value for a remote (repository) location. - */ - public FormValidation doSvnRemoteLocationCheck(StaplerRequest req, @QueryParameter String value) { - // syntax check first - String url = Util.nullify(value); - if (url == null) - return FormValidation.ok(); - - // remove unneeded whitespaces - url = url.trim(); - if(!URL_PATTERN.matcher(url).matches()) - return FormValidation.errorWithMarkup("Invalid URL syntax. See " - + "this " - + "for information about valid URLs."); - - // Test the connection only if we have admin permission - if (!Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) - return FormValidation.ok(); - - try { - SVNURL repoURL = SVNURL.parseURIDecoded(url); - if (checkRepositoryPath(repoURL)!=SVNNodeKind.NONE) - // something exists - return FormValidation.ok(); - - SVNRepository repository = null; - try { - repository = getRepository(repoURL); - long rev = repository.getLatestRevision(); - // now go back the tree and find if there's anything that exists - String repoPath = getRelativePath(repoURL, repository); - String p = repoPath; - while(p.length()>0) { - p = SVNPathUtil.removeTail(p); - if(repository.checkPath(p,rev)==SVNNodeKind.DIR) { - // found a matching path - List entries = new ArrayList(); - repository.getDir(p,rev,false,entries); - - // build up the name list - List paths = new ArrayList(); - for (SVNDirEntry e : entries) - if(e.getKind()==SVNNodeKind.DIR) - paths.add(e.getName()); - - String head = SVNPathUtil.head(repoPath.substring(p.length() + 1)); - String candidate = EditDistance.findNearest(head,paths); - - return FormValidation.error("'%1$s/%2$s' doesn't exist in the repository. Maybe you meant '%1$s/%3$s'?", - p, head, candidate); - } - } - - return FormValidation.error(repoPath+" doesn't exist in the repository"); - } finally { - if (repository != null) - repository.closeSession(); - } - } catch (SVNException e) { - String message=""; - message += "Unable to access "+Util.escape(url)+" : "+Util.escape( e.getErrorMessage().getFullMessage()); - message += " (show details)"; - message += "

"; - message += " (Maybe you need to enter credential?)"; - message += "
"; - LOGGER.log(Level.INFO, "Failed to access subversion repository "+url,e); - return FormValidation.errorWithMarkup(message); - } - } - - public SVNNodeKind checkRepositoryPath(SVNURL repoURL) throws SVNException { - SVNRepository repository = null; - - try { - repository = getRepository(repoURL); - repository.testConnection(); - - long rev = repository.getLatestRevision(); - String repoPath = getRelativePath(repoURL, repository); - return repository.checkPath(repoPath, rev); - } finally { - if (repository != null) - repository.closeSession(); - } - } - - protected SVNRepository getRepository(SVNURL repoURL) throws SVNException { - SVNRepository repository = SVNRepositoryFactory.create(repoURL); - - ISVNAuthenticationManager sam = SVNWCUtil.createDefaultAuthenticationManager(); - sam = new FilterSVNAuthenticationManager(sam) { - // If there's no time out, the blocking read operation may hang forever, because TCP itself - // has no timeout. So always use some time out. If the underlying implementation gives us some - // value (which may come from ~/.subversion), honor that, as long as it sets some timeout value. - @Override - public int getReadTimeout(SVNRepository repository) { - int r = super.getReadTimeout(repository); - if(r<=0) r = DEFAULT_TIMEOUT; - return r; - } - }; - sam.setAuthenticationProvider(createAuthenticationProvider()); - repository.setAuthenticationManager(sam); - - return repository; - } - - public static String getRelativePath(SVNURL repoURL, SVNRepository repository) throws SVNException { - String repoPath = repoURL.getPath().substring(repository.getRepositoryRoot(false).getPath().length()); - if(!repoPath.startsWith("/")) repoPath="/"+repoPath; - return repoPath; - } - - /** - * validate the value for a local location (local checkout directory). - */ - public FormValidation doSvnLocalLocationCheck(@QueryParameter String value) throws IOException, ServletException { - String v = Util.nullify(value); - if (v == null) - // local directory is optional so this is ok - return FormValidation.ok(); - - v = v.trim(); - - // check if a absolute path has been supplied - // (the last check with the regex will match windows drives) - if (v.startsWith("/") || v.startsWith("\\") || v.startsWith("..") || v.matches("^[A-Za-z]:")) - return FormValidation.error("absolute path is not allowed"); - - // all tests passed so far - return FormValidation.ok(); - } - - /** - * Validates the excludeRegions Regex - */ - public FormValidation doExcludeRegionsCheck(@QueryParameter String value) throws IOException, ServletException { - for (String region : Util.fixNull(value).trim().split("[\\r\\n]+")) - try { - Pattern.compile(region); - } catch (PatternSyntaxException e) { - return FormValidation.error("Invalid regular expression. " + e.getMessage()); - } - return FormValidation.ok(); - } - - static { - new Initializer(); - } - } - - public boolean repositoryLocationsExist(AbstractBuild build, - TaskListener listener) throws SVNException { - - PrintStream out = listener.getLogger(); - - for (ModuleLocation l : getLocations(build)) - if (getDescriptor().checkRepositoryPath(l.getSVNURL()) == SVNNodeKind.NONE) { - out.println("Location '" + l.remote + "' does not exist"); - - ParametersAction params = build - .getAction(ParametersAction.class); - if (params != null) { - out.println("Location could be expanded on build '" + build - + "' parameters values:"); - - for (ParameterValue paramValue : params) { - out.println(" " + paramValue); - } - } - return false; - } - return true; - } - - static final Pattern URL_PATTERN = Pattern.compile("(https?|svn(\\+[a-z0-9]+)?|file)://.+"); - - private static final long serialVersionUID = 1L; - - // noop, but this forces the initializer to run. - public static void init() {} - - static { - new Initializer(); - } - - private static final class Initializer { - static { - if(Boolean.getBoolean("hudson.spool-svn")) - DAVRepositoryFactory.setup(new DefaultHTTPConnectionFactory(null,true,null)); - else - DAVRepositoryFactory.setup(); // http, https - SVNRepositoryFactoryImpl.setup(); // svn, svn+xxx - FSRepositoryFactory.setup(); // file - - // work around for http://www.nabble.com/Slow-SVN-Checkout-tf4486786.html - if(System.getProperty("svnkit.symlinks")==null) - System.setProperty("svnkit.symlinks","false"); - - // disable the connection pooling, which causes problems like - // http://www.nabble.com/SSH-connection-problems-p12028339.html - if(System.getProperty("svnkit.ssh2.persistent")==null) - System.setProperty("svnkit.ssh2.persistent","false"); - - // use SVN1.4 compatible workspace by default. - SVNAdminAreaFactory.setSelector(new SubversionWorkspaceSelector()); - } - } - - /** - * small structure to store local and remote (repository) location - * information of the repository. As a addition it holds the invalid field - * to make failure messages when doing a checkout possible - */ - public static final class ModuleLocation implements Serializable { - /** - * Subversion URL to check out. - * - * This may include "@NNN" at the end to indicate a fixed revision. - */ - public final String remote; - /** - * Remembers the user-given value. - * Can be null. - * - * @deprecated - * Code should use {@link #getLocalDir()}. This field is only intended for form binding. - */ - public final String local; - - /** - * Cache of the repository UUID. - */ - private transient volatile UUID repositoryUUID; - private transient volatile SVNURL repositoryRoot; - - public ModuleLocation(String remote, String local) { - this.remote = remote.trim(); - this.local = Util.fixEmptyAndTrim(local); - } - - /** - * Local directory to place the file to. - * Relative to the workspace root. - */ - public String getLocalDir() { - if(local==null) - return getLastPathComponent(remote); - return local; - } - - /** - * Returns the pure URL portion of {@link #remote} by removing - * possible "@NNN" suffix. - */ - public String getURL() { - int idx = remote.lastIndexOf('@'); - if(idx>0) { - try { - String n = remote.substring(idx+1); - Long.parseLong(n); - return remote.substring(0,idx); - } catch (NumberFormatException e) { - // not a revision number - } - } - return remote; - } - - /** - * Gets {@link #remote} as {@link SVNURL}. - */ - public SVNURL getSVNURL() throws SVNException { - return SVNURL.parseURIEncoded(getURL()); - } - - /** - * Repository UUID. Lazy computed and cached. - */ - public UUID getUUID() throws SVNException { - if(repositoryUUID==null || repositoryRoot==null) { - synchronized (this) { - SVNRepository r = openRepository(); - r.testConnection(); // make sure values are fetched - repositoryUUID = UUID.fromString(r.getRepositoryUUID(false)); - repositoryRoot = r.getRepositoryRoot(false); - } - } - return repositoryUUID; - } - - public SVNRepository openRepository() throws SVNException { - return Hudson.getInstance().getDescriptorByType(DescriptorImpl.class).getRepository(getSVNURL()); - } - - public SVNURL getRepositoryRoot() throws SVNException { - getUUID(); - return repositoryRoot; - } - - /** - * Figures out which revision to check out. - * - * If {@link #remote} is {@code url@rev}, then this method - * returns that specific revision. - * - * @param defaultValue - * If "@NNN" portion is not in the URL, this value will be returned. - * Normally, this is the SVN revision timestamped at the build date. - */ - public SVNRevision getRevision(SVNRevision defaultValue) { - int idx = remote.lastIndexOf('@'); - if(idx>0) { - try { - String n = remote.substring(idx+1); - return SVNRevision.create(Long.parseLong(n)); - } catch (NumberFormatException e) { - // not a revision number - } - } - return defaultValue; - } - - private String getExpandedRemote(AbstractBuild build) { - String outRemote = remote; - - ParametersAction parameters = build.getAction(ParametersAction.class); - if (parameters != null) - outRemote = parameters.substitute(build, remote); - - return outRemote; - } - - /** - * Expand location value based on Build parametric execution. - * - * @param build - * Build instance for expanding parameters into their values - * - * @return Output ModuleLocation expanded according to Build parameters - * values. - */ - public ModuleLocation getExpandedLocation(AbstractBuild build) { - return new ModuleLocation(getExpandedRemote(build), getLocalDir()); - } - - public String toString() { - return remote; - } - - private static final long serialVersionUID = 1L; - } - - private static final Logger LOGGER = Logger.getLogger(SubversionSCM.class.getName()); - - /** - * Network timeout in milliseconds. - * The main point of this is to prevent infinite hang, so it should be a rather long value to avoid - * accidental time out problem. - */ - public static int DEFAULT_TIMEOUT = Integer.getInteger(SubversionSCM.class.getName()+".timeout",3600*1000); - - /** - * Enables trace logging of Ganymed SSH library. - *

- * Intended to be invoked from Groovy console. - */ - public static void enableSshDebug(Level level) { - if(level==null) level= Level.FINEST; // default - - final Level lv = level; - - com.trilead.ssh2.log.Logger.enabled=true; - com.trilead.ssh2.log.Logger.logger = new DebugLogger() { - private final Logger LOGGER = Logger.getLogger(SCPClient.class.getPackage().getName()); - public void log(int level, String className, String message) { - LOGGER.log(lv,className+' '+message); - } - }; - } -} diff --git a/core/src/main/java/hudson/scm/SubversionStatus.java b/core/src/main/java/hudson/scm/SubversionStatus.java deleted file mode 100644 index 622e22185c..0000000000 --- a/core/src/main/java/hudson/scm/SubversionStatus.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.model.AbstractModelObject; -import hudson.model.Action; -import hudson.model.RootAction; -import hudson.Extension; - -import java.util.regex.Pattern; -import java.util.UUID; - -/** - * Information screen for the use of Subversion in Hudson. - * - * @author Kohsuke Kawaguchi - */ -@Extension -public class SubversionStatus extends AbstractModelObject implements RootAction { - public String getDisplayName() { - return "Subversion"; - } - - public String getSearchUrl() { - return getUrlName(); - } - - public String getIconFileName() { - // TODO - return null; - } - - public String getUrlName() { - return "subversion"; - } - - public SubversionRepositoryStatus getDynamic(String uuid) { - if(UUID_PATTERN.matcher(uuid).matches()) - return new SubversionRepositoryStatus(UUID.fromString(uuid)); - return null; - } - - private static final Pattern UUID_PATTERN = Pattern.compile("\\p{XDigit}{8}-\\p{XDigit}{4}-\\p{XDigit}{4}-\\p{XDigit}{4}-\\p{XDigit}{12}"); -} diff --git a/core/src/main/java/hudson/scm/SubversionTagAction.java b/core/src/main/java/hudson/scm/SubversionTagAction.java deleted file mode 100644 index a36ac470b8..0000000000 --- a/core/src/main/java/hudson/scm/SubversionTagAction.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Jean-Baptiste Quenot, Seiji Sogabe, Vojtech Habarta - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.model.AbstractBuild; -import hudson.model.Action; -import hudson.model.TaskListener; -import hudson.model.TaskThread; -import hudson.scm.SubversionSCM.SvnInfo; -import hudson.util.CopyOnWriteMap; -import hudson.security.Permission; -import org.kohsuke.stapler.StaplerRequest; -import org.kohsuke.stapler.StaplerResponse; -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.SVNURL; -import org.tmatesoft.svn.core.wc.SVNClientManager; -import org.tmatesoft.svn.core.wc.SVNCopyClient; -import org.tmatesoft.svn.core.wc.SVNRevision; -import org.tmatesoft.svn.core.wc.SVNCopySource; - -import javax.servlet.ServletException; -import java.io.IOException; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * {@link Action} that lets people create tag for the given build. - * - * @author Kohsuke Kawaguchi - */ -public class SubversionTagAction extends AbstractScmTagAction { - - /** - * Map is from the repository URL to the URLs of tags. - * If a module is not tagged, the value will be empty list. - * Never an empty map. - */ - private final Map> tags = new CopyOnWriteMap.Tree>(); - - /*package*/ SubversionTagAction(AbstractBuild build,Collection svnInfos) { - super(build); - Map> m = new HashMap>(); - for (SvnInfo si : svnInfos) - m.put(si,new ArrayList()); - tags.putAll(m); - } - - /** - * Was any tag created by the user already? - */ - public boolean hasTags() { - for (Entry> e : tags.entrySet()) - if(!e.getValue().isEmpty()) - return true; - return false; - } - - public String getIconFileName() { - if(!hasTags() && !getACL().hasPermission(getPermission())) - return null; - return "save.gif"; - } - - public String getDisplayName() { - int nonNullTag = 0; - for (List v : tags.values()) { - if(!v.isEmpty()) { - nonNullTag++; - if(nonNullTag>1) - break; - } - } - if(nonNullTag==0) - return Messages.SubversionTagAction_DisplayName_HasNoTag(); - if(nonNullTag==1) - return Messages.SubversionTagAction_DisplayName_HasATag(); - else - return Messages.SubversionTagAction_DisplayName_HasTags(); - } - - /** - * @see #tags - */ - public Map> getTags() { - return Collections.unmodifiableMap(tags); - } - - /** - * Returns true if this build has already been tagged at least once. - */ - @Override - public boolean isTagged() { - for (List t : tags.values()) { - if(!t.isEmpty()) return true; - } - return false; - } - - @Override - public String getTooltip() { - if(isTagged()) return Messages.SubversionTagAction_Tooltip(); - else return null; - } - - private static final Pattern TRUNK_BRANCH_MARKER = Pattern.compile("/(trunk|branches)(/|$)"); - - /** - * Creates a URL, to be used as the default value of the module tag URL. - * - * @return - * null if failed to guess. - */ - public String makeTagURL(SvnInfo si) { - // assume the standard trunk/branches/tags repository layout - Matcher m = TRUNK_BRANCH_MARKER.matcher(si.url); - if(!m.find()) - return null; // doesn't have 'trunk' nor 'branches' - - return si.url.substring(0,m.start())+"/tags/"+build.getProject().getName()+"-"+build.getNumber(); - } - - /** - * Invoked to actually tag the workspace. - */ - public synchronized void doSubmit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { - getACL().checkPermission(getPermission()); - - Map newTags = new HashMap(); - - int i=-1; - for (SvnInfo e : tags.keySet()) { - i++; - if(tags.size()>1 && req.getParameter("tag"+i)==null) - continue; // when tags.size()==1, UI won't show the checkbox. - newTags.put(e,req.getParameter("name" + i)); - } - - new TagWorkerThread(newTags).start(); - - rsp.sendRedirect("."); - } - - @Override - public Permission getPermission() { - return SubversionSCM.TAG; - } - - /** - * The thread that performs tagging operation asynchronously. - */ - public final class TagWorkerThread extends TaskThread { - private final Map tagSet; - - public TagWorkerThread(Map tagSet) { - super(SubversionTagAction.this,ListenerAndText.forMemory()); - this.tagSet = tagSet; - } - - @Override - protected void perform(TaskListener listener) { - try { - final SVNClientManager cm = SubversionSCM.createSvnClientManager(); - try { - for (Entry e : tagSet.entrySet()) { - PrintStream logger = listener.getLogger(); - logger.println("Tagging "+e.getKey()+" to "+e.getValue()); - - try { - SVNURL src = SVNURL.parseURIDecoded(e.getKey().url); - SVNURL dst = SVNURL.parseURIDecoded(e.getValue()); - - SVNCopyClient svncc = cm.getCopyClient(); - SVNRevision sourceRevision = SVNRevision.create(e.getKey().revision); - SVNCopySource csrc = new SVNCopySource(sourceRevision, sourceRevision, src); - svncc.doCopy( - new SVNCopySource[]{csrc}, - dst, false, true, false, "Tagged from "+build, null ); - } catch (SVNException x) { - x.printStackTrace(listener.error("Failed to tag")); - return; - } - } - - // completed successfully - for (Entry e : tagSet.entrySet()) - SubversionTagAction.this.tags.get(e.getKey()).add(e.getValue()); - build.save(); - workerThread = null; - } finally { - cm.dispose(); - } - } catch (Throwable e) { - e.printStackTrace(listener.fatalError(e.getMessage())); - } - } - } -} diff --git a/core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java b/core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java deleted file mode 100644 index b93ac1f957..0000000000 --- a/core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, David Seymore, Renaud Bruyeron - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import hudson.remoting.Which; -import org.tmatesoft.svn.core.SVNCancelException; -import org.tmatesoft.svn.core.SVNErrorCode; -import org.tmatesoft.svn.core.SVNErrorMessage; -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.internal.wc.SVNExternal; -import org.tmatesoft.svn.core.wc.SVNEvent; -import org.tmatesoft.svn.core.wc.SVNEventAction; - -import java.io.File; -import java.io.IOException; -import java.io.PrintStream; -import java.net.URL; -import java.util.List; - -/** - * Just prints out the progress of svn update/checkout operation in a way similar to - * the svn CLI. - * - * This code also records all the referenced external locations. - */ -final class SubversionUpdateEventHandler extends SubversionEventHandlerImpl { - - /** - * External urls that are fetched through svn:externals. - * We add to this collection as we find them. - */ - private final List externals; - /** - * Relative path from the workspace root to the module root. - */ - private final String modulePath; - - public SubversionUpdateEventHandler(PrintStream out, List externals, File moduleDir, String modulePath) { - super(out,moduleDir); - this.externals = externals; - this.modulePath = modulePath; - } - - public void handleEvent(SVNEvent event, double progress) throws SVNException { - File file = event.getFile(); - String path = null; - if (file != null) { - try { - path = getRelativePath(file); - } catch (IOException e) { - throw new SVNException(SVNErrorMessage.create(SVNErrorCode.FS_GENERAL), e); - } - path = getLocalPath(path); - } - - /* - * Gets the current action. An action is represented by SVNEventAction. - * In case of an update an action can be determined via comparing - * SVNEvent.getAction() and SVNEventAction.UPDATE_-like constants. - */ - SVNEventAction action = event.getAction(); - if (action == SVNEventAction.UPDATE_EXTERNAL) { - // for externals definitions - SVNExternal ext = event.getExternalInfo(); - if(ext==null) { - // prepare for the situation where the user created their own svnkit - URL jarFile = null; - try { - jarFile = Which.jarURL(SVNEvent.class); - } catch (IOException e) { - // ignore this failure - } - out.println("AssertionError: appears to be using unpatched svnkit at "+ jarFile); - } else { - out.println(Messages.SubversionUpdateEventHandler_FetchExternal( - ext.getResolvedURL(), ext.getRevision().getNumber(), event.getFile())); - //#1539 - an external inside an external needs to have the path appended - externals.add(new SubversionSCM.External(modulePath + "/" + path.substring(0 - ,path.length() - ext.getPath().length()) - ,ext)); - } - return; - } - - super.handleEvent(event,progress); - } - - public void checkCancelled() throws SVNCancelException { - if(Thread.interrupted()) - throw new SVNCancelException(); - } -} \ No newline at end of file diff --git a/core/src/main/java/hudson/scm/SubversionWorkspaceSelector.java b/core/src/main/java/hudson/scm/SubversionWorkspaceSelector.java deleted file mode 100644 index 3ce7098f57..0000000000 --- a/core/src/main/java/hudson/scm/SubversionWorkspaceSelector.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.internal.wc.admin.ISVNAdminAreaFactorySelector; -import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14; -import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory; - -import java.io.File; -import java.util.ArrayList; -import java.util.Collection; - -/** - * {@link ISVNAdminAreaFactorySelector} that uses 1.4 compatible workspace for new check out, - * but still supports 1.5 workspace, if asked to work with it. - * - *

- * Since there are many tools out there that still don't support Subversion 1.5 (including - * all the major Unix distributions that haven't bundled Subversion 1.5), using 1.4 as the - * default would reduce the likelihood of the user running into "this SVN client can't work - * with this workspace version..." problem when using other SVN tools. - * - *

- * The primary scenario of this is the use of command-line SVN client, either from shell - * script, Ant, or Maven. - * - * @author Kohsuke Kawaguchi - */ -public class SubversionWorkspaceSelector implements ISVNAdminAreaFactorySelector { - public SubversionWorkspaceSelector() { - // don't upgrade the workspace. - SVNAdminAreaFactory.setUpgradeEnabled(false); - } - - @SuppressWarnings({"cast", "unchecked"}) - public Collection getEnabledFactories(File path, Collection factories, boolean writeAccess) throws SVNException { - if(!writeAccess) // for reading, use all our available factories - return factories; - - // for writing, use 1.4 - Collection enabledFactories = new ArrayList(); - for (SVNAdminAreaFactory factory : (Collection)factories) - if (factory.getSupportedVersion() == SVNAdminArea14.WC_FORMAT) - enabledFactories.add(factory); - - return enabledFactories; - } -} diff --git a/core/src/main/java/hudson/scm/browsers/CollabNetSVN.java b/core/src/main/java/hudson/scm/browsers/CollabNetSVN.java deleted file mode 100644 index 411a32dd33..0000000000 --- a/core/src/main/java/hudson/scm/browsers/CollabNetSVN.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Daniel Dyer - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.model.Descriptor; -import hudson.model.Descriptor.FormException; -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet; -import hudson.scm.SubversionRepositoryBrowser; -import hudson.Extension; - -import java.io.IOException; -import java.net.URL; -import net.sf.json.JSONObject; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.StaplerRequest; - -/** - * {@link RepositoryBrowser} implementation for CollabNet hosted Subversion repositories. - * This enables Hudson to integrate with the repository browsers built-in to CollabNet-powered - * sites such as Java.net and Tigris.org. - * @author Daniel Dyer - */ -public class CollabNetSVN extends SubversionRepositoryBrowser -{ - @Extension - public static class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "CollabNet"; - } - - @Override - public RepositoryBrowser newInstance(StaplerRequest req, JSONObject formData) throws FormException { - return req.bindParameters(CollabNetSVN.class, "collabnet.svn."); - } - } - - - public final URL url; - - - /** - * @param url The repository browser URL for the root of the project. - * For example, a Java.net project called "myproject" would use - * https://myproject.dev.java.net/source/browse/myproject - */ - @DataBoundConstructor - public CollabNetSVN(URL url) { - this.url = normalizeToEndWithSlash(url); - } - - - /** - * {@inheritDoc} - */ - public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException { - if (path.getEditType() != EditType.EDIT) { - // No diff if the file is being added or deleted. - return null; - } - - int revision = path.getLogEntry().getRevision(); - QueryBuilder query = new QueryBuilder(null); - query.add("r1=" + (revision - 1)); - query.add("r2=" + revision); - return new URL(url, trimHeadSlash(path.getValue()) + query); - } - - - /** - * {@inheritDoc} - */ - public URL getFileLink(SubversionChangeLogSet.Path path) throws IOException { - int revision = path.getLogEntry().getRevision(); - QueryBuilder query = new QueryBuilder(null); - query.add("rev=" + revision); - query.add("view=log"); - return new URL(url, trimHeadSlash(path.getValue()) + query); - } - - - /** - * {@inheritDoc} - */ - public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException { - int revision = changeSet.getRevision(); - QueryBuilder query = new QueryBuilder(null); - query.add("rev=" + revision); - query.add("view=rev"); - return new URL(url, query.toString()); - } -} diff --git a/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java b/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java deleted file mode 100644 index caa253dec6..0000000000 --- a/core/src/main/java/hudson/scm/browsers/FishEyeSVN.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.Extension; -import hudson.model.Descriptor; -import hudson.model.Hudson; -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet.LogEntry; -import hudson.scm.SubversionChangeLogSet.Path; -import hudson.scm.SubversionRepositoryBrowser; -import hudson.util.FormValidation; -import hudson.util.FormValidation.URLCheck; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.QueryParameter; - -import javax.servlet.ServletException; -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.regex.Pattern; - -/** - * {@link RepositoryBrowser} for FishEye SVN. - * - * @author Kohsuke Kawaguchi - */ -public class FishEyeSVN extends SubversionRepositoryBrowser { - /** - * The URL of the FishEye repository. - * - * This is normally like http://fisheye5.cenqua.com/browse/glassfish/ - * Normalized to have '/' at the tail. - */ - public final URL url; - - /** - * Root SVN module name (like 'foo/bar' — normalized to - * have no leading nor trailing slash.) Can be empty. - */ - private final String rootModule; - - @DataBoundConstructor - public FishEyeSVN(URL url, String rootModule) throws MalformedURLException { - this.url = normalizeToEndWithSlash(url); - - // normalize - rootModule = rootModule.trim(); - if(rootModule.startsWith("/")) - rootModule = rootModule.substring(1); - if(rootModule.endsWith("/")) - rootModule = rootModule.substring(0,rootModule.length()-1); - - this.rootModule = rootModule; - } - - public String getRootModule() { - if(rootModule==null) - return ""; // compatibility - return rootModule; - } - - @Override - public URL getDiffLink(Path path) throws IOException { - if(path.getEditType()!= EditType.EDIT) - return null; // no diff if this is not an edit change - int r = path.getLogEntry().getRevision(); - return new URL(url, getPath(path)+String.format("?r1=%d&r2=%d",r-1,r)); - } - - @Override - public URL getFileLink(Path path) throws IOException { - return new URL(url, getPath(path)); - } - - /** - * Trims off the root module portion to compute the path within FishEye. - */ - private String getPath(Path path) { - String s = trimHeadSlash(path.getValue()); - if(s.startsWith(rootModule)) // this should be always true, but be defensive - s = trimHeadSlash(s.substring(rootModule.length())); - return s; - } - - /** - * Pick up "FOOBAR" from "http://site/browse/FOOBAR/" - */ - private String getProjectName() { - String p = url.getPath(); - if(p.endsWith("/")) p = p.substring(0,p.length()-1); - - int idx = p.lastIndexOf('/'); - return p.substring(idx+1); - } - - @Override - public URL getChangeSetLink(LogEntry changeSet) throws IOException { - return new URL(url,"../../changelog/"+getProjectName()+"/?cs="+changeSet.getRevision()); - } - - @Extension - public static class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "FishEye"; - } - - /** - * Performs on-the-fly validation of the URL. - */ - public FormValidation doCheck(@QueryParameter(fixEmpty=true) String value) throws IOException, ServletException { - if(value==null) // nothing entered yet - return FormValidation.ok(); - - if(!value.endsWith("/")) value+='/'; - if(!URL_PATTERN.matcher(value).matches()) - return FormValidation.errorWithMarkup("The URL should end like .../browse/foobar/"); - - // Connect to URL and check content only if we have admin permission - if (!Hudson.getInstance().hasPermission(Hudson.ADMINISTER)) - return FormValidation.ok(); - - final String finalValue = value; - return new URLCheck() { - @Override - protected FormValidation check() throws IOException, ServletException { - try { - if(findText(open(new URL(finalValue)),"FishEye")) { - return FormValidation.ok(); - } else { - return FormValidation.error("This is a valid URL but it doesn't look like FishEye"); - } - } catch (IOException e) { - return handleIOException(finalValue,e); - } - } - }.check(); - } - - private static final Pattern URL_PATTERN = Pattern.compile(".+/browse/[^/]+/"); - } - - private static final long serialVersionUID = 1L; -} diff --git a/core/src/main/java/hudson/scm/browsers/Sventon.java b/core/src/main/java/hudson/scm/browsers/Sventon.java deleted file mode 100644 index 4559cd6411..0000000000 --- a/core/src/main/java/hudson/scm/browsers/Sventon.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.Extension; -import hudson.model.AbstractProject; -import hudson.model.Descriptor; -import hudson.model.Item; -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet.LogEntry; -import hudson.scm.SubversionChangeLogSet.Path; -import hudson.scm.SubversionRepositoryBrowser; -import hudson.util.FormValidation; -import hudson.util.FormValidation.URLCheck; -import org.kohsuke.stapler.AncestorInPath; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.QueryParameter; - -import javax.servlet.ServletException; -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLEncoder; - -/** - * {@link RepositoryBrowser} for Sventon 1.x. - * - * @author Stephen Connolly - */ -public class Sventon extends SubversionRepositoryBrowser { - /** - * The URL of the Sventon 1.x repository. - * - * This is normally like http://somehost.com/svn/ - * Normalized to have '/' at the tail. - */ - public final URL url; - - /** - * Repository instance. Cannot be empty - */ - private final String repositoryInstance; - - /** - * The charset to use when encoding paths in an URI (specified in RFC 3986). - */ - private static final String URL_CHARSET = "UTF-8"; - - @DataBoundConstructor - public Sventon(URL url, String repositoryInstance) throws MalformedURLException { - this.url = normalizeToEndWithSlash(url); - - // normalize - repositoryInstance = repositoryInstance.trim(); - - this.repositoryInstance = repositoryInstance == null ? "" : repositoryInstance; - } - - public String getRepositoryInstance() { - return repositoryInstance; - } - - @Override - public URL getDiffLink(Path path) throws IOException { - if(path.getEditType()!= EditType.EDIT) - return null; // no diff if this is not an edit change - int r = path.getLogEntry().getRevision(); - return new URL(url, String.format("diffprev.svn?name=%s&commitrev=%d&committedRevision=%d&revision=%d&path=%s", - repositoryInstance,r,r,r,URLEncoder.encode(getPath(path), URL_CHARSET))); - } - - @Override - public URL getFileLink(Path path) throws IOException { - if (path.getEditType() == EditType.DELETE) - return null; // no file if it's gone - int r = path.getLogEntry().getRevision(); - return new URL(url, String.format("goto.svn?name=%s&revision=%d&path=%s", - repositoryInstance,r,URLEncoder.encode(getPath(path), URL_CHARSET))); - } - - /** - * Trims off the root module portion to compute the path within FishEye. - */ - private String getPath(Path path) { - String s = trimHeadSlash(path.getValue()); - if(s.startsWith(repositoryInstance)) // this should be always true, but be defensive - s = trimHeadSlash(s.substring(repositoryInstance.length())); - return s; - } - - @Override - public URL getChangeSetLink(LogEntry changeSet) throws IOException { - return new URL(url, String.format("revinfo.svn?name=%s&revision=%d", - repositoryInstance,changeSet.getRevision())); - } - - @Extension - public static class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "Sventon 1.x"; - } - - /** - * Performs on-the-fly validation of the URL. - */ - public FormValidation doCheckUrl(@AncestorInPath AbstractProject project, - @QueryParameter(fixEmpty=true) final String value) - throws IOException, ServletException { - if(!project.hasPermission(Item.CONFIGURE)) return FormValidation.ok(); // can't check - if(value==null) // nothing entered yet - return FormValidation.ok(); - - return new URLCheck() { - protected FormValidation check() throws IOException, ServletException { - String v = value; - if(!v.endsWith("/")) v+='/'; - - try { - if (findText(open(new URL(v)),"sventon 1")) { - return FormValidation.ok(); - } else if (findText(open(new URL(v)),"sventon")) { - return FormValidation.error("This is a valid Sventon URL but it doesn't look like Sventon 1.x"); - } else{ - return FormValidation.error("This is a valid URL but it doesn't look like Sventon"); - } - } catch (IOException e) { - return handleIOException(v,e); - } - } - }.check(); - } - } - - private static final long serialVersionUID = 1L; -} diff --git a/core/src/main/java/hudson/scm/browsers/Sventon2.java b/core/src/main/java/hudson/scm/browsers/Sventon2.java deleted file mode 100644 index ca2c722935..0000000000 --- a/core/src/main/java/hudson/scm/browsers/Sventon2.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.Extension; -import hudson.model.AbstractProject; -import hudson.model.Descriptor; -import hudson.model.Item; -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet.LogEntry; -import hudson.scm.SubversionChangeLogSet.Path; -import hudson.scm.SubversionRepositoryBrowser; -import hudson.util.FormValidation; -import hudson.util.FormValidation.URLCheck; -import org.kohsuke.stapler.AncestorInPath; -import org.kohsuke.stapler.DataBoundConstructor; -import org.kohsuke.stapler.QueryParameter; - -import javax.servlet.ServletException; -import java.io.IOException; -import java.io.UnsupportedEncodingException; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLEncoder; - -/** - * {@link RepositoryBrowser} for Sventon 2.x. - * - * @author Stephen Connolly - */ -public class Sventon2 extends SubversionRepositoryBrowser { - /** - * The URL of the Sventon 2.x repository. - * - * This is normally like http://somehost.com/svn/ - * Normalized to have '/' at the tail. - */ - public final URL url; - - /** - * Repository instance. Cannot be empty - */ - private final String repositoryInstance; - - /** - * The charset to use when encoding paths in an URI (specified in RFC 3986). - */ - private static final String URL_CHARSET = "UTF-8"; - - @DataBoundConstructor - public Sventon2(URL url, String repositoryInstance) throws MalformedURLException { - this.url = normalizeToEndWithSlash(url); - - // normalize - repositoryInstance = repositoryInstance.trim(); - - this.repositoryInstance = repositoryInstance == null ? "" : repositoryInstance; - } - - public String getRepositoryInstance() { - return repositoryInstance; - } - - @Override - public URL getDiffLink(Path path) throws IOException { - if(path.getEditType()!= EditType.EDIT) - return null; // no diff if this is not an edit change - int r = path.getLogEntry().getRevision(); - return new URL(url, String.format("repos/%s/diff/%s?revision=%d", - repositoryInstance,encodePath(getPath(path)), r)); - } - - @Override - public URL getFileLink(Path path) throws IOException { - if (path.getEditType() == EditType.DELETE) - return null; // no file if it's gone - int r = path.getLogEntry().getRevision(); - return new URL(url, String.format("repos/%s/goto/%s?revision=%d", - repositoryInstance,encodePath(getPath(path)), r)); - } - - /** - * Trims off the root module portion to compute the path within FishEye. - */ - private String getPath(Path path) { - String s = trimHeadSlash(path.getValue()); - if(s.startsWith(repositoryInstance)) // this should be always true, but be defensive - s = trimHeadSlash(s.substring(repositoryInstance.length())); - return s; - } - - private static String encodePath(String path) - throws UnsupportedEncodingException - { - StringBuilder buf = new StringBuilder( ); - if (path.startsWith("/")) { - buf.append('/'); - } - boolean first = true; - for (String pathElement: path.split( "/" )) { - if (first) { - first = false; - } else { - buf.append('/'); - } - buf.append(URLEncoder.encode(pathElement, URL_CHARSET)); - } - if (path.endsWith("/")) { - buf.append('/'); - } - return buf.toString(); - } - - @Override - public URL getChangeSetLink(LogEntry changeSet) throws IOException { - return new URL(url, String.format("repos/%s/info?revision=%d", - repositoryInstance,changeSet.getRevision())); - } - - @Extension - public static class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "Sventon 2.x"; - } - - /** - * Performs on-the-fly validation of the URL. - */ - public FormValidation doCheckUrl(@AncestorInPath AbstractProject project, - @QueryParameter(fixEmpty=true) final String value) - throws IOException, ServletException { - if(!project.hasPermission(Item.CONFIGURE)) return FormValidation.ok(); // can't check - if(value==null) // nothing entered yet - return FormValidation.ok(); - - return new URLCheck() { - protected FormValidation check() throws IOException, ServletException { - String v = value; - if(!v.endsWith("/")) v+='/'; - - try { - if (findText(open(new URL(v)),"sventon 2")) { - return FormValidation.ok(); - } else if (findText(open(new URL(v)),"sventon")) { - return FormValidation.error("This is a valid Sventon URL but it doesn't look like Sventon 2.x"); - } else{ - return FormValidation.error("This is a valid URL but it doesn't look like Sventon"); - } - } catch (IOException e) { - return handleIOException(v,e); - } - } - }.check(); - } - } - - private static final long serialVersionUID = 1L; -} diff --git a/core/src/main/java/hudson/scm/browsers/ViewSVN.java b/core/src/main/java/hudson/scm/browsers/ViewSVN.java deleted file mode 100644 index 16827e2545..0000000000 --- a/core/src/main/java/hudson/scm/browsers/ViewSVN.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.model.Descriptor; -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet; -import hudson.scm.SubversionChangeLogSet.Path; -import hudson.scm.SubversionRepositoryBrowser; -import hudson.Extension; -import org.kohsuke.stapler.StaplerRequest; -import org.kohsuke.stapler.DataBoundConstructor; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.URL; - -/** - * {@link RepositoryBrowser} for Subversion. - * - * @author Kohsuke Kawaguchi - * @since 1.90 - */ -// See http://viewvc.tigris.org/source/browse/*checkout*/viewvc/trunk/docs/url-reference.html -public class ViewSVN extends SubversionRepositoryBrowser { - /** - * The URL of the top of the site. - * - * Normalized to ends with '/', like http://svn.apache.org/viewvc/ - * It may contain a query parameter like ?root=foobar, so relative URL - * construction needs to be done with care. - */ - public final URL url; - - @DataBoundConstructor - public ViewSVN(URL url) throws MalformedURLException { - this.url = normalizeToEndWithSlash(url); - } - - @Override - public URL getDiffLink(Path path) throws IOException { - if(path.getEditType()!= EditType.EDIT) - return null; // no diff if this is not an edit change - int r = path.getLogEntry().getRevision(); - return new URL(url,trimHeadSlash(path.getValue())+param().add("r1="+(r-1)).add("r2="+r)); - } - - @Override - public URL getFileLink(Path path) throws IOException { - return new URL(url,trimHeadSlash(path.getValue())+param()); - } - - @Override - public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException { - return new URL(url,"."+param().add("view=rev").add("rev="+changeSet.getRevision())); - } - - private QueryBuilder param() { - return new QueryBuilder(url.getQuery()); - } - - private static final long serialVersionUID = 1L; - - @Extension - public static final class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "ViewSVN"; - } - } -} diff --git a/core/src/main/java/hudson/scm/browsers/WebSVN.java b/core/src/main/java/hudson/scm/browsers/WebSVN.java deleted file mode 100644 index 68d5eb6fde..0000000000 --- a/core/src/main/java/hudson/scm/browsers/WebSVN.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Daniel Dyer - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm.browsers; - -import hudson.model.Descriptor; - -import hudson.scm.EditType; -import hudson.scm.RepositoryBrowser; -import hudson.scm.SubversionChangeLogSet; - -import hudson.scm.SubversionChangeLogSet.Path; - -import hudson.scm.SubversionRepositoryBrowser; -import hudson.Extension; - -import org.kohsuke.stapler.StaplerRequest; -import org.kohsuke.stapler.DataBoundConstructor; - -import java.io.IOException; - -import java.net.MalformedURLException; -import java.net.URL; - - -/** - * {@link RepositoryBrowser} for Subversion. Assumes that WebSVN is - * configured with Multiviews enabled. - * - * @author jasonchaffee at dev.java.net - * @since 1.139 - */ -public class WebSVN extends SubversionRepositoryBrowser { - - @Extension - public static class DescriptorImpl extends Descriptor> { - public String getDisplayName() { - return "WebSVN"; - } - } - - - private static final long serialVersionUID = 1L; - - /** - * The URL of the top of the site. - * - *

Normalized to ends with '/', like http://svn.apache.org/wsvn/ - * It may contain a query parameter like ?root=foobar, so relative - * URL construction needs to be done with care.

- */ - public final URL url; - - /** - * Creates a new WebSVN object. - * - * @param url DOCUMENT ME! - * - * @throws MalformedURLException DOCUMENT ME! - */ - @DataBoundConstructor - public WebSVN(URL url) throws MalformedURLException { - this.url = normalizeToEndWithSlash(url); - } - - /** - * Returns the diff link value. - * - * @param path the given path value. - * - * @return the diff link value. - * - * @throws IOException DOCUMENT ME! - */ - @Override public URL getDiffLink(Path path) throws IOException { - if (path.getEditType() != EditType.EDIT) { - return null; // no diff if this is not an edit change - } - - int r = path.getLogEntry().getRevision(); - - return new URL(url, - trimHeadSlash(path.getValue()) + - param().add("op=diff").add("rev=" + r)); - } - - /** - * Returns the file link value. - * - * @param path the given path value. - * - * @return the file link value. - * - * @throws IOException DOCUMENT ME! - */ - @Override public URL getFileLink(Path path) throws IOException { - return new URL(url, trimHeadSlash(path.getValue()) + param()); - } - - /** - * Returns the change set link value. - * - * @param changeSet the given changeSet value. - * - * @return the change set link value. - * - * @throws IOException DOCUMENT ME! - */ - @Override public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) - throws IOException { - return new URL(url, - "." + - param().add("rev=" + changeSet.getRevision()).add("sc=1")); - } - - private QueryBuilder param() { - return new QueryBuilder(url.getQuery()); - } -} diff --git a/core/src/main/java/hudson/tasks/MailAddressResolver.java b/core/src/main/java/hudson/tasks/MailAddressResolver.java index 7e1a9ed107..552f949839 100644 --- a/core/src/main/java/hudson/tasks/MailAddressResolver.java +++ b/core/src/main/java/hudson/tasks/MailAddressResolver.java @@ -32,7 +32,6 @@ import hudson.model.Hudson; import hudson.model.User; import hudson.scm.CVSSCM; import hudson.scm.SCM; -import hudson.scm.SubversionSCM; import java.util.HashMap; import java.util.List; @@ -154,13 +153,6 @@ public abstract class MailAddressResolver implements ExtensionPoint { String s = findMailAddressFor(u,cvsscm.getCvsRoot()); if(s!=null) return s; } - if (scm instanceof SubversionSCM) { - SubversionSCM svn = (SubversionSCM) scm; - for (SubversionSCM.ModuleLocation loc : svn.getLocations(p.getLastBuild())) { - String s = findMailAddressFor(u,loc.remote); - if(s!=null) return s; - } - } } // didn't hit any known rules @@ -183,21 +175,16 @@ public abstract class MailAddressResolver implements ExtensionPoint { static { {// java.net - Pattern svnurl = Pattern.compile("https://[^.]+.dev.java.net/svn/([^/]+)(/.*)?"); - String username = "([A-Za-z0-9_\\-])+"; String host = "(.*.dev.java.net|kohsuke.sfbay.*)"; Pattern cvsUrl = Pattern.compile(":pserver:"+username+"@"+host+":/cvs"); - RULE_TABLE.put(svnurl,"@dev.java.net"); RULE_TABLE.put(cvsUrl,"@dev.java.net"); } {// source forge - Pattern svnUrl = Pattern.compile("(http|https)://[^.]+.svn.(sourceforge|sf).net/svnroot/([^/]+)(/.*)?"); Pattern cvsUrl = Pattern.compile(":(pserver|ext):([^@]+)@([^.]+).cvs.(sourceforge|sf).net:.+"); - RULE_TABLE.put(svnUrl,"@users.sourceforge.net"); RULE_TABLE.put(cvsUrl,"@users.sourceforge.net"); } diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest.jelly b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest.jelly deleted file mode 100644 index ec0bb6f4a7..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest.jelly +++ /dev/null @@ -1,76 +0,0 @@ - - - - - Displays the Subversion change log digest. - - If specified, this is prepended in links to change details. - - - - - - - - - - - ${%Revision}: - ${r.value} -
-
- - ${%Revisions} -
    - -
  • ${r.key} : ${r.value}
  • -
    -
-
-
- - - ${%No changes.} - - - ${%Changes} -
    - -
  1. - ${cs.msgAnnotated} - (${%detail} - - - - / - ${browser.descriptor.displayName} - - ) -
  2. -
    -
-
-
-
diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_de.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_de.properties deleted file mode 100644 index 607c53d389..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_de.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Simon Wiest -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=Keine Änderungen. diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_fr.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_fr.properties deleted file mode 100644 index ebeac0155e..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_fr.properties +++ /dev/null @@ -1,27 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=Aucun changement. -Revision=Révision -Revisions=Révisions -Changes=Changements -detail=détails diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ja.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ja.properties deleted file mode 100644 index 92a33eb40e..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ja.properties +++ /dev/null @@ -1,27 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe, id:cactusman -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Revision=\u30ea\u30d3\u30b8\u30e7\u30f3 -Revisions=\u30ea\u30d3\u30b8\u30e7\u30f3 -Changes=\u5909\u66f4 -detail=\u8a73\u7d30 -No\ changes.=\u5909\u66f4\u70b9\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_nl.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_nl.properties deleted file mode 100644 index bccc655f52..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_nl.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=Geen wijzigingen. diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_pt_BR.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_pt_BR.properties deleted file mode 100644 index a65c0c3c7c..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_pt_BR.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Reginaldo L. Russinholi -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=Sem mudan\u00E7as. diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ru.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ru.properties deleted file mode 100644 index b518bd2314..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_ru.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Mike Salnikov -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=\u041d\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_tr.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_tr.properties deleted file mode 100644 index 40ac076fb4..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/digest_tr.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Oguz Dag -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -No\ changes.=Herhangi\ bir\ de\u011fi\u015fiklik\ yok. diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index.jelly b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index.jelly deleted file mode 100644 index b20a7aa327..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index.jelly +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - -

${%Summary}

-
    - -
  1. -
    -
- - - - - - - - - - - - - -
- -
- - ${%Revision} - ${cs.revision} - by ${cs.author}: -
- ${cs.msgAnnotated} -
-
- ${p.value} - - - - (diff) - -
-
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_de.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_de.properties deleted file mode 100644 index cf5279541a..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_de.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Simon Wiest -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=Zusammenfassung -Revision=Revision diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_fr.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_fr.properties deleted file mode 100644 index f1bb873c45..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_fr.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=Résumé -Revision=Modification diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ja.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ja.properties deleted file mode 100644 index 354010d579..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ja.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:cactusman -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=\u8981\u7d04 -Revision=\u30ea\u30d3\u30b8\u30e7\u30f3 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_nl.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_nl.properties deleted file mode 100644 index ab154d35c5..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_nl.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=Samenvatting -Revision=Revisie diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_pt_BR.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_pt_BR.properties deleted file mode 100644 index 483d558400..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_pt_BR.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Reginaldo L. Russinholi -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=Sum\u00E1rio -Revision=Revis\u00E3o diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ru.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ru.properties deleted file mode 100644 index b390fc0812..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_ru.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Mike Salnikov -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=\u0421\u0432\u043e\u0434\u043a\u0430 -Revision=\u0420\u0435\u0432\u0438\u0437\u0438\u044f diff --git a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_tr.properties b/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_tr.properties deleted file mode 100644 index 4a56679b43..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionChangeLogSet/index_tr.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Oguz Dag -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Summary=\u00d6zet -Revision=Revizyon diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly deleted file mode 100644 index ac2cd4a9e5..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - ${%Authentication was successful. Information is stored in Hudson now.} - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_fr.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_fr.properties deleted file mode 100644 index b173ba8354..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_fr.properties +++ /dev/null @@ -1,25 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Subversion\ Authentication\ Successful=Authentification Subversion réussie -Authentication\ was\ successful.\ Information\ is\ stored\ in\ Hudson\ now.= \ - L''authentification est réussie. Stockage de l''information dans Hudson en cours. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_ja.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_ja.properties deleted file mode 100644 index 2f0d4413e6..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK_ja.properties +++ /dev/null @@ -1,25 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Subversion\ Authentication\ Successful=Subversion\u306E\u8A8D\u8A3C\u306E\u6210\u529F -Authentication\ was\ successful.\ Information\ is\ stored\ in\ Hudson now.=\ - \u8A8D\u8A3C\u304C\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u60C5\u5831\u306FHudson\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.jelly b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.jelly deleted file mode 100644 index c9af025996..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.jelly +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -

- - ${%Subversion Authentication} -

-

- ${description} -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.properties deleted file mode 100644 index f20bb0fd3c..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -description=\ - Enter the authentication information needed to connect to the Subversion repository.\ - This information will be stored in Hudson. - diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_fr.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_fr.properties deleted file mode 100644 index aeb9ca51fa..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_fr.properties +++ /dev/null @@ -1,37 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Subversion\ Authentication=Authentification Subversion -Repository\ URL=URL du repository -Username/password\ authentication=Authentification par nom d''utilisateur/mot de passe -User\ name=Nom d''utilisateur -Password=Mot de passe -SSH\ public\ key\ authentication=Authentification par clé publique SSH -svn+ssh= -Pass\ phrase=Phrase à retenir -Private\ key=Clé privée -HTTPS\ client\ certificate=Certificat HTTPS client -PKCS12\ certificate=Certificat PKCS12 -OK= -description=\ - Entrez les informations d''authentification nécessaires pour connecter au repository Subversion. \ - Cette information sera stockée dans Hudson. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_ja.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_ja.properties deleted file mode 100644 index 6b47a1792d..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/enterCredential_ja.properties +++ /dev/null @@ -1,36 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Subversion\ Authentication=Subversion \u8A8D\u8A3C -description=\ - Subversion\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u63A5\u7D9A\u306B\u5FC5\u8981\u306A\u8A8D\u8A3C\u60C5\u5831\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\ - \u3053\u306E\u60C5\u5831\u306FHudson\u304C\u4FDD\u5B58\u3057\u307E\u3059\u3002 -Repository\ URL=\u30EA\u30DD\u30B8\u30C8\u30EAURL -Username/password\ authentication=\u30E6\u30FC\u30B6\u30FC\u540D/\u30D1\u30B9\u30EF\u30FC\u30C9\u8A8D\u8A3C -User\ name=\u30E6\u30FC\u30B6\u30FC\u540D -Password=\u30D1\u30B9\u30EF\u30FC\u30C9 -SSH\ public\ key\ authentication=SSH\u516C\u958B\u9375\u8A8D\u8A3C -Pass\ phrase=\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA -Private\ key=\u79D8\u5BC6\u9375 -HTTPS\ client\ certificate=HTTPS\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u8A8D\u8A3C -PKCS12\ certificate=PKCS12\u8A3C\u660E\u66F8 -OK=\u5B9F\u884C diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.jelly b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.jelly deleted file mode 100644 index 2a2b2d46bb..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.jelly +++ /dev/null @@ -1,36 +0,0 @@ - - - - -
- ${%description.1} - ${%description.explicitRevision} -
- ${%description.2(rootURL)} -
- ${%description.3} -
-
-
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.properties deleted file mode 100644 index 577bc0c8c3..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help.properties +++ /dev/null @@ -1,36 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -description.1=\ - Specify the subversion repository URL to check out, such as "http://svn.apache.org/repos/asf/ant/". -description.explicitRevision=\ - You can also add "@NNN" at the end of the URL to check out a specific revision number, if that''s desirable. -description.2=\ - When you enter URL, Hudson automatically checks if Hudson can connect to it. If access requires \ - authentication, it will ask you the necessary credential. If you already have a working \ - credential but would like to change it for other reasons, \ - click this link and specify different credential. -description.3=\ - During the build, revision number of the module that was checked out is available \ - through the environment variable SVN_REVISION, provided that you are only checking out \ - one module. If you have multiple modules checked out, use the \ - svnversion command. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_fr.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_fr.properties deleted file mode 100644 index 2b1e913bd3..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_fr.properties +++ /dev/null @@ -1,36 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -description.1=\ - Spécifiez l''URL du repository Subversion à lire, par exemple "http://svn.apache.org/repos/asf/ant/". -description.explicitRevision=\ - Vous pouvez également ajouter "@NNN" à la fin de l''URL pour récupérer un numéro de révision spécifique, si vous le souhaitez. -description.2=\ - Quand vous entrez une URL, Hudson vérifie automatiquement s''il peut s''y connecter. Si l''accès nécessite \ - une authentification, il vous demandera les informations nécessaires. Si vous disposez déjà d''informations d''identification \ - qui marchent mais que vous voulez en changer, cliquez sur ce lien \ - et renseignez des valeurs différentes. -description.3=\ - Au cours du build, le numéro de révision du module qui a été récupéré est disponible par la variable \ - d''environnement SVN_REVISION, si vous n''avez récupéré qu''un seul module. Si vous avez \ - plusieurs modules, utilisez la \ - commande svnversion. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_ja.properties b/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_ja.properties deleted file mode 100644 index 0475b8c857..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/url-help_ja.properties +++ /dev/null @@ -1,35 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -description.1=\ - \u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u3059\u308BSubversion\u306E\u30EA\u30DD\u30B8\u30C8\u30EAURL\u3092\u3001"http://svn.apache.org/repos/asf/ant/"\u306E\u3088\u3046\u306B\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -description.explicitRevision=\ - \u5FC5\u8981\u3067\u3042\u308C\u3070\u3001URL\u306E\u6700\u5F8C\u306B"@NNN"\u3092\u3064\u3051\u3066\u7279\u5B9A\u306E\u30EA\u30D3\u30B8\u30E7\u30F3\u3092\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002 -description.2=\ - URL\u3092\u5165\u529B\u3059\u308B\u3068\u3001Hudson\u306F\u63A5\u7D9A\u3067\u304D\u308B\u304B\u81EA\u52D5\u7684\u306B\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u3059\u3002\u8A8D\u8A3C\u304C\u5FC5\u8981\u306A\u5834\u5408\u3001\u8A8D\u8A3C\u306B\u5FC5\u8981\u306A\u4E8B\u9805\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002\ - \u3082\u3057\u3001\u3059\u3067\u306B\u8A8D\u8A3C\u6E08\u307F\u3067\u3082\u4F55\u3089\u304B\u306E\u7406\u7531\u3067\u5909\u66F4\u3057\u305F\u3044\u306E\u3067\u3042\u308C\u3070\u3001\ - \u3053\u306E\u30EA\u30F3\u30AF\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u518D\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -description.3=\ - \u30D3\u30EB\u30C9\u4E2D\u306B\u306F\u30011\u3064\u306E\u30E2\u30B8\u30E5\u30FC\u30EB\u306E\u307F\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u3057\u3066\u3044\u308B\u306E\u3067\u3042\u308C\u3070\u3001\u74B0\u5883\u5909\u6570SVN_REVISION\u3092\u4F7F\u7528\u3059\u308B\u3068\u3001\ - \u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u3057\u305F\u30E2\u30B8\u30E5\u30FC\u30EB\u306E\u30EA\u30D3\u30B8\u30E7\u30F3\u756A\u53F7\u3092\u4F7F\u7528\u3067\u304D\u307E\u3059\u3002\ - \u3082\u3057\u3001\u8907\u6570\u306E\u30E2\u30B8\u30E5\u30FC\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u30A2\u30A6\u30C8\u3057\u3066\u3044\u308B\u306E\u3067\u3042\u308C\u3070\u3001\ - Subversion\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002 diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config.jelly b/core/src/main/resources/hudson/scm/SubversionSCM/config.jelly deleted file mode 100644 index c8345ccbdf..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config.jelly +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - -
- - -
-
-
-
-
- - - - - - - - - - -
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config.properties deleted file mode 100644 index 97a92a264a..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config.properties +++ /dev/null @@ -1,25 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -updateDescription=\ - If checked, Hudson will use ''svn update'' whenever possible, making the build faster. \ - But this causes the artifacts from the previous build to remain when a new build starts. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_de.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_de.properties deleted file mode 100644 index 1836b23b13..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_de.properties +++ /dev/null @@ -1,33 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Simon Wiest -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=Module -Repository\ URL=Repository URL -Add\ more\ locations...=Weiteres Modul hinzufügen... -Delete=Löschen -Use\ update=Update-Kommando verwenden -Local\ module\ directory=Lokales Modulverzeichnis -optional=optional -updateDescription=\ - Wenn angewählt, versucht Hudson - wenn immer möglich - ''svn update'' auszuführen, um \ - den Build zu beschleunigen. Dieses bedeutet allerdings auch, dass Artefakte des \ - vorangegangenen Builds zu Beginn des neuen Builds nicht entfernt werden. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_fr.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_fr.properties deleted file mode 100644 index a03f86ce9a..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_fr.properties +++ /dev/null @@ -1,34 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules= -Repository\ URL=URL du repository -Local\ module\ directory=Répertoire local du module -optional=optionnel -Add\ more\ locations...=Ajoutez d''autres emplacements -Delete=Supprimer -Use\ update=Utiliser ''svn update'' -updateDescription=\ - Quand cette option est activée, Hudson utilisera ''svn update'' à chaque fois que cela est possible, \ - ce qui rend le build plus rapide. Attention, les artefacts du build précédent seront conservés au \ - démarrage d''un nouveau build. -Excluded\ Regions=Régions exclues diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_ja.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_ja.properties deleted file mode 100644 index 2457d8bbf8..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_ja.properties +++ /dev/null @@ -1,33 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe, id:cactusman -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=\u30E2\u30B8\u30E5\u30FC\u30EB -Repository\ URL=\u30EA\u30DD\u30B8\u30C8\u30EAURL -Local\ module\ directory=\u30ED\u30FC\u30AB\u30EB\u30E2\u30B8\u30E5\u30FC\u30EB\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA -optional=\u30AA\u30D7\u30B7\u30E7\u30F3 -Add\ more\ locations...=\u30ED\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u8FFD\u52A0 -Delete=\u524A\u9664 -Use\ update=\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u306E\u4F7F\u7528 -updateDescription=\ - \u30C1\u30A7\u30C3\u30AF\u3059\u308B\u3068\u3001Hudson\u306F\u300Csvn update\u300D\u3092\u5229\u7528\u3057\u3066\u30D3\u30EB\u30C9\u3092\u7D20\u65E9\u304F\u884C\u3044\u307E\u3059\u304C\u3001\ - \u4EE5\u524D\u306E\u30D3\u30EB\u30C9\u3067\u751F\u6210\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u4E0A\u306B\u6B8B\u3063\u305F\u307E\u307E\u306B\u306A\u308A\u307E\u3059\u3002 -Excluded\ Regions=\u5BFE\u8C61\u5916\u3068\u3059\u308B\u7BC4\u56F2 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_nl.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_nl.properties deleted file mode 100644 index 55d7d0767b..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_nl.properties +++ /dev/null @@ -1,33 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=Modules -Repository\ URL= -Local\ module\ directory=Lokaal modulepad -optional=optioneel -Add\ more\ locations...=Voeg meer locaties toe -Delete=Verwijder -Use\ update=Gebruik de "update" optie -updateDescription=\ - Indien aangevinkt, zal Hudson 'svn update' gebruiken, waar mogelijk. Dit zal uw bouwpoging \ - sneller maken. Anderszijds zal dit er echter voor zorgen dat uw werkplaats niet opgeschoond \ - wordt voor het starten van een nieuwe bouwpoging. \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_pt_BR.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_pt_BR.properties deleted file mode 100644 index 16495ae627..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_pt_BR.properties +++ /dev/null @@ -1,29 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Reginaldo L. Russinholi -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=M\u00F3dulos -Repository\ URL=URL do Reposit\u00F3rio -Local\ module\ directory=Diret\u00F3rio do m\u00F3dulo local -optional=opcional -Add\ more\ locations...=Adicinar mais locais... -Delete=Excluir -Use\ update=Usar atualiza\u00E7\u00E3o diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_ru.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_ru.properties deleted file mode 100644 index d3def27394..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_ru.properties +++ /dev/null @@ -1,32 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Mike Salnikov -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=\u041c\u043e\u0434\u0443\u043b\u0438 -Repository\ URL=URL \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f -Add\ more\ locations...=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 -Delete=\u0423\u0434\u0430\u043b\u0438\u0442\u044c -Use\ update=\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 (update) -Local\ module\ directory=\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f -optional=\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e -updateDescription=\u0415\u0441\u043b\u0438 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u043e, Hudson \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c ''svn update'' \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \ -\u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044e \u0441\u0431\u043e\u0440\u043a\u0438. \u041e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b, \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \ -\u0441\u0431\u043e\u0440\u043a\u0438, \u0442\u0430\u043a\u0436\u0435 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0432 \u0441\u0431\u043e\u0440\u043e\u0447\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/config_tr.properties b/core/src/main/resources/hudson/scm/SubversionSCM/config_tr.properties deleted file mode 100644 index e0f2ffe05b..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/config_tr.properties +++ /dev/null @@ -1,32 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Oguz Dag -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -Modules=Mod\u00fcller -Repository\ URL=Repository URL''i -Local\ module\ directory=Yerel mod\u00fcl dizini -optional=opsiyonel -Add\ more\ locations...=Daha fazla lokasyon ekle -Delete=Sil -Use\ update=G\u00fcncelleme \u00f6zelli\u011fini kullan -updateDescription=E\u011fer se\u00e7ili ise, Hudson yap\u0131land\u0131rmay\u0131 h\u0131zland\u0131rabilmek ad\u0131na ''svn update''i kullanacakt\u0131r. \ -Fakat bu durum, \u00f6nceki yap\u0131land\u0131rmada olu\u015fturulan artefaktlar\u0131n, yeni yap\u0131land\u0131rma ba\u015flad\u0131\u011f\u0131nda dahi kalmas\u0131na yol a\u00e7ar. - diff --git a/core/src/main/resources/hudson/scm/SubversionSCM/help.html b/core/src/main/resources/hudson/scm/SubversionSCM/help.html deleted file mode 100644 index 7df1d2513d..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionSCM/help.html +++ /dev/null @@ -1,5 +0,0 @@ -
- Checks out the source code from Subversion repositories. See - post-commit hook set up - for improved turn-around time and performance in polling. -
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly deleted file mode 100644 index 251f3eb14c..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - -
    - -
  • ${t}
  • -
    -
-
-
- - - - -

Build #${it.build.number}

- - - -

- ${%This build is already tagged}: -

- - - - - -
    - -
  • - ${m.key.url} - -
  • -
    -
-
-
-
- - -

${%Create more tags}

-
-
- - - - - - - - - - - - - - - - - -
${%Module URL}${%Tag URL}
- -
- - - -
-
-
-
\ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_de.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_de.properties deleted file mode 100644 index f2b33f78b4..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_de.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Simon Wiest -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=Dieser Build ist bereits markiert ("getaggt") als -Module\ URL=Modul-URL -Tag\ URL=Tag-URL -Tag=Tag diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_fr.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_fr.properties deleted file mode 100644 index 4b2728cb4f..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_fr.properties +++ /dev/null @@ -1,27 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=Ce build a déjà été taggé -Module\ URL=URL du module -Tag\ URL=URL du tag -Tag=Tag (libellé) -Create\ more\ tags=Créer plus de tags diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ja.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ja.properties deleted file mode 100644 index 008545ef77..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ja.properties +++ /dev/null @@ -1,27 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=\u3053\u306e\u30d3\u30eb\u30c9\u306f\u65e2\u306b\u30bf\u30b0\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059 -Create\ more\ tags=\u30bf\u30b0\u3092\u8ffd\u52a0 -Module\ URL=\u30e2\u30b8\u30e5\u30fc\u30eb\u306eURL -Tag\ URL=\u30bf\u30b0\u306eURL -Tag=\u30bf\u30b0\u3092\u8a2d\u5b9a diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_nl.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_nl.properties deleted file mode 100644 index a30880d053..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_nl.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, id:sorokh -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=Deze bouwpoging werd al gelabeled -Module\ URL=Module URL -Tag\ URL=Label URL -Tag=Label diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_pt_BR.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_pt_BR.properties deleted file mode 100644 index 066dd5d267..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_pt_BR.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Reginaldo L. Russinholi -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=Esta constru\u00E7\u00E3o j\u00E1 est\u00E1 marcada -Module\ URL=URL do m\u00F3dulo -Tag\ URL=URL da marca\u00E7\u00E3o -Tag=Marca\u00E7\u00E3o diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ru.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ru.properties deleted file mode 100644 index 18d0ceefd0..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_ru.properties +++ /dev/null @@ -1,26 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Mike Salnikov -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=\u042d\u0442\u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u0443\u0436\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u0430 -Module\ URL=URL \u043c\u043e\u0434\u0443\u043b\u044f -Tag\ URL=URL \u043c\u0435\u0442\u043a\u0438 -Tag=\u041c\u0435\u0442\u043a\u0430 diff --git a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_tr.properties b/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_tr.properties deleted file mode 100644 index 65488ef7d0..0000000000 --- a/core/src/main/resources/hudson/scm/SubversionTagAction/tagForm_tr.properties +++ /dev/null @@ -1,27 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Oguz Dag -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -This\ build\ is\ already\ tagged=Bu yap\u0131land\u0131rma daha \u00f6nceden tag''lenmi\u015ftir -Module\ URL=Mod\u00fcl URL''i -Tag\ URL=Tag URL''i -Tag=Tag -Create\ more\ tags=Daha fazla tag olu\u015ftur diff --git a/core/src/main/resources/hudson/scm/browsers/CollabNetSVN/config.jelly b/core/src/main/resources/hudson/scm/browsers/CollabNetSVN/config.jelly deleted file mode 100644 index 9fdcb2ea00..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/CollabNetSVN/config.jelly +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config.jelly b/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config.jelly deleted file mode 100644 index bdae7656ae..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config.jelly +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_fr.properties b/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_fr.properties deleted file mode 100644 index f3d60f691c..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_fr.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL= -Root\ module=Module racine diff --git a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_ja.properties b/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_ja.properties deleted file mode 100644 index a212211d77..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/FishEyeSVN/config_ja.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL=URL -Root\ module=\u30EB\u30FC\u30C8\u30E2\u30B8\u30E5\u30FC\u30EB \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon/config.jelly b/core/src/main/resources/hudson/scm/browsers/Sventon/config.jelly deleted file mode 100644 index b6bfac54a2..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon/config.jelly +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon/config_fr.properties b/core/src/main/resources/hudson/scm/browsers/Sventon/config_fr.properties deleted file mode 100644 index 8308543c9c..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon/config_fr.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL= -Repository\ Instance=Nom de l''instance du repository diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon/config_ja.properties b/core/src/main/resources/hudson/scm/browsers/Sventon/config_ja.properties deleted file mode 100644 index de0217b3fb..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon/config_ja.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL=URL -Repository\ Instance=\u30EA\u30DD\u30B8\u30C8\u30EA\u30FB\u30A4\u30F3\u30B9\u30BF\u30F3\u30B9 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon/config_nl.properties b/core/src/main/resources/hudson/scm/browsers/Sventon/config_nl.properties deleted file mode 100644 index 74626cb846..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon/config_nl.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Wim Rosseel -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -URL=URL -Repository\ Instance=Naam repository-instantie diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon2/config.jelly b/core/src/main/resources/hudson/scm/browsers/Sventon2/config.jelly deleted file mode 100644 index b6bfac54a2..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon2/config.jelly +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_fr.properties b/core/src/main/resources/hudson/scm/browsers/Sventon2/config_fr.properties deleted file mode 100644 index 8308543c9c..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_fr.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Eric Lefevre-Ardant -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL= -Repository\ Instance=Nom de l''instance du repository diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_ja.properties b/core/src/main/resources/hudson/scm/browsers/Sventon2/config_ja.properties deleted file mode 100644 index de0217b3fb..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_ja.properties +++ /dev/null @@ -1,24 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Seiji Sogabe -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -URL=URL -Repository\ Instance=\u30EA\u30DD\u30B8\u30C8\u30EA\u30FB\u30A4\u30F3\u30B9\u30BF\u30F3\u30B9 \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_nl.properties b/core/src/main/resources/hudson/scm/browsers/Sventon2/config_nl.properties deleted file mode 100644 index 74626cb846..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/Sventon2/config_nl.properties +++ /dev/null @@ -1,23 +0,0 @@ -# The MIT License -# -# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Wim Rosseel -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -URL=URL -Repository\ Instance=Naam repository-instantie diff --git a/core/src/main/resources/hudson/scm/browsers/ViewSVN/config.jelly b/core/src/main/resources/hudson/scm/browsers/ViewSVN/config.jelly deleted file mode 100644 index 48bb08c5b5..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/ViewSVN/config.jelly +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/core/src/main/resources/hudson/scm/browsers/WebSVN/config.jelly b/core/src/main/resources/hudson/scm/browsers/WebSVN/config.jelly deleted file mode 100644 index 2b8fa145b9..0000000000 --- a/core/src/main/resources/hudson/scm/browsers/WebSVN/config.jelly +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/core/src/test/java/hudson/scm/SubversionSCMTest.java b/core/src/test/java/hudson/scm/SubversionSCMTest.java deleted file mode 100644 index 2b81991bc3..0000000000 --- a/core/src/test/java/hudson/scm/SubversionSCMTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * The MIT License - * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -package hudson.scm; - -import junit.framework.TestCase; - -import java.util.Arrays; - -/** - * @author Kohsuke Kawaguchi - */ -public class SubversionSCMTest extends TestCase { - public void test1() { - check("http://foobar/"); - check("https://foobar/"); - check("file://foobar/"); - check("svn://foobar/"); - check("svn+ssh://foobar/"); - } - - public void test2() { - String[] r = "abc\\ def ghi".split("(?