summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2013-01-09 13:56:32 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2013-01-09 14:21:40 +0100
commit850e5bc24e31c8c510592b24c8a2f425bc2988f0 (patch)
treeee52bb8c96781bceddd30f7a25081855a46ab347 /org.eclipse.jgit.pgm/src/org/eclipse
parent04214819784b722b7ab24bb82150b393a085b6b8 (diff)
downloadjgit-850e5bc24e31c8c510592b24c8a2f425bc2988f0.tar.gz
jgit-850e5bc24e31c8c510592b24c8a2f425bc2988f0.zip
Delete the iplog generator
It stopped working when we moved to the Eclipse foundation's Gerrit server since it doesn't use the Gerrit internal user store but LDAP. Instead, since 2.0, we use the Eclipse foundation's automatic IP log generator [1] to generate IP logs for releasing jgit and egit. [1] http://www.eclipse.org/projects/ip_log_selector.php Change-Id: I98dc65efb62909bc0258e6c680df0c93a57e9677 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CLIText.java1
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Iplog.java121
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Ipzilla.java99
3 files changed, 0 insertions, 221 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CLIText.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CLIText.java
index ecf5e8d3a3..552629eba1 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CLIText.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CLIText.java
@@ -74,7 +74,6 @@ public class CLIText extends TranslationBundle {
}
// @formatter:off
- /***/ public String IPZillaPasswordPrompt;
/***/ public String alreadyOnBranch;
/***/ public String alreadyUpToDate;
/***/ public String archiveEntryModeIgnored;
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Iplog.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Iplog.java
deleted file mode 100644
index 5784fecd8d..0000000000
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Iplog.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Copyright (C) 2010, Google Inc.
- * and other copyright owners as documented in the project's IP log.
- *
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Distribution License v1.0 which
- * accompanies this distribution, is reproduced below, and is
- * available at http://www.eclipse.org/org/documents/edl-v10.php
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- * - Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * - Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- *
- * - Neither the name of the Eclipse Foundation, Inc. nor the
- * names of its contributors may be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.eclipse.jgit.pgm.eclipse;
-
-import java.io.File;
-import java.io.OutputStream;
-import java.net.CookieHandler;
-import java.text.MessageFormat;
-
-import org.eclipse.jgit.iplog.IpLogGenerator;
-import org.eclipse.jgit.iplog.SimpleCookieManager;
-import org.eclipse.jgit.lib.Constants;
-import org.eclipse.jgit.lib.ObjectId;
-import org.eclipse.jgit.pgm.CLIText;
-import org.eclipse.jgit.pgm.Command;
-import org.eclipse.jgit.pgm.TextBuiltin;
-import org.eclipse.jgit.revwalk.RevObject;
-import org.eclipse.jgit.revwalk.RevTag;
-import org.eclipse.jgit.revwalk.RevWalk;
-import org.eclipse.jgit.storage.file.LockFile;
-import org.eclipse.jgit.util.FileUtils;
-import org.kohsuke.args4j.Argument;
-import org.kohsuke.args4j.Option;
-
-@Command(name = "eclipse-iplog", common = false, usage = "usage_produceAnEclipseIPLog")
-class Iplog extends TextBuiltin {
- @Option(name = "--version", aliases = { "-r" }, metaVar = "metaVar_version", usage = "usage_symbolicVersionForTheProject")
- private String version;
-
- @Option(name = "--output", aliases = { "-o" }, metaVar = "metaVar_file", usage = "usage_outputFile")
- private File output;
-
- @Argument(index = 0, metaVar = "metaVar_commitOrTag")
- private ObjectId commitId;
-
- @Override
- protected void run() throws Exception {
- if (CookieHandler.getDefault() == null)
- CookieHandler.setDefault(new SimpleCookieManager());
-
- final IpLogGenerator log = new IpLogGenerator();
-
- if (commitId == null) {
- System.err.println(MessageFormat.format(
- CLIText.get().warningNoCommitGivenOnCommandLine, Constants.HEAD));
- commitId = db.resolve(Constants.HEAD);
- }
-
- final RevWalk rw = new RevWalk(db);
- final RevObject start = rw.parseAny(commitId);
- if (version == null && start instanceof RevTag)
- version = ((RevTag) start).getTagName();
- else if (version == null)
- throw die(MessageFormat.format(CLIText.get().notATagVersionIsRequired, start.name()));
-
- log.scan(db, rw.parseCommit(start), version);
-
- if (output != null) {
- FileUtils.mkdirs(output.getParentFile(), true);
- LockFile lf = new LockFile(output, db.getFS());
- if (!lf.lock())
- throw die(MessageFormat.format(CLIText.get().cannotLock, output));
- try {
- OutputStream os = lf.getOutputStream();
- try {
- log.writeTo(os);
- } finally {
- os.close();
- }
- if (!lf.commit())
- throw die(MessageFormat.format(CLIText.get().cannotWrite, output));
- } finally {
- lf.unlock();
- }
- } else {
- log.writeTo(outs);
- outs.flush();
- }
- }
-}
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Ipzilla.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Ipzilla.java
deleted file mode 100644
index a6ec91408d..0000000000
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/eclipse/Ipzilla.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright (C) 2010, Google Inc.
- * and other copyright owners as documented in the project's IP log.
- *
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Distribution License v1.0 which
- * accompanies this distribution, is reproduced below, and is
- * available at http://www.eclipse.org/org/documents/edl-v10.php
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or
- * without modification, are permitted provided that the following
- * conditions are met:
- *
- * - Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * - Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- *
- * - Neither the name of the Eclipse Foundation, Inc. nor the
- * names of its contributors may be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
- * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.eclipse.jgit.pgm.eclipse;
-
-import java.io.File;
-import java.net.Authenticator;
-import java.net.CookieHandler;
-import java.net.PasswordAuthentication;
-import java.net.URL;
-
-import org.eclipse.jgit.iplog.IpLogMeta;
-import org.eclipse.jgit.iplog.SimpleCookieManager;
-import org.eclipse.jgit.pgm.CLIText;
-import org.eclipse.jgit.pgm.Command;
-import org.eclipse.jgit.pgm.TextBuiltin;
-import org.kohsuke.args4j.Option;
-
-@Command(name = "eclipse-ipzilla", common = false, usage = "usage_synchronizeIPZillaData")
-class Ipzilla extends TextBuiltin {
- @Option(name = "--url", metaVar = "metaVar_url", usage = "usage_IPZillaURL")
- private String url = "https://dev.eclipse.org/ipzilla/"; //$NON-NLS-1$
-
- @Option(name = "--username", metaVar = "metaVar_user", usage = "usage_IPZillaUsername")
- private String username;
-
- @Option(name = "--password", metaVar = "metaVar_pass", usage = "usage_IPZillaPassword")
- private String password;
-
- @Option(name = "--file", aliases = { "-f" }, metaVar = "metaVar_file", usage = "usage_inputOutputFile")
- private File output;
-
- @Override
- protected void run() throws Exception {
- if (CookieHandler.getDefault() == null)
- CookieHandler.setDefault(new SimpleCookieManager());
-
- final URL ipzilla = new URL(url);
- if (username == null) {
- final PasswordAuthentication auth = Authenticator
- .requestPasswordAuthentication(ipzilla.getHost(), //
- null, //
- ipzilla.getPort(), //
- ipzilla.getProtocol(), //
- CLIText.get().IPZillaPasswordPrompt, //
- ipzilla.getProtocol(), //
- ipzilla, //
- Authenticator.RequestorType.SERVER);
- username = auth.getUserName();
- password = new String(auth.getPassword());
- }
-
- if (output == null)
- output = new File(db.getWorkTree(), IpLogMeta.IPLOG_CONFIG_FILE);
-
- IpLogMeta meta = new IpLogMeta();
- meta.syncCQs(output, db.getFS(), ipzilla, username, password);
- }
-}