initial release

This commit is contained in:
Jeremy Long
2012-09-08 01:42:55 -04:00
parent ed600f1759
commit dd4b13d318
4 changed files with 15 additions and 20 deletions

15
pom.xml
View File

@@ -35,11 +35,11 @@ along with DependencyCheck. If not, see <http://www.gnu.org/licenses/>.
<email>jeremy.long@gmail.com</email> <email>jeremy.long@gmail.com</email>
</developer> </developer>
</developers> </developers>
<scm> <scm>
<connection>scm:git:git@github.com:jeremylong/DependencyCheck.git</connection> <connection>scm:git:git@github.com:jeremylong/DependencyCheck.git</connection>
<url>scm:git:git@github.com:jeremylong/DependencyCheck.git</url> <url>https://github.com/jeremylong/DependencyCheck.git</url>
<developerConnection>scm:git:git@github.com:jeremylong/DependencyCheck.git</developerConnection> <developerConnection>scm:git:git@github.com:jeremylong/DependencyCheck.git</developerConnection>
</scm> </scm>
<licenses> <licenses>
<license> <license>
<name>GNU General Public License version 3</name> <name>GNU General Public License version 3</name>
@@ -70,6 +70,11 @@ along with DependencyCheck. If not, see <http://www.gnu.org/licenses/>.
</resources> </resources>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.3.2</version>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>

View File

@@ -20,14 +20,6 @@ package org.codesecure.dependencycheck.utils;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.HelpFormatter;
@@ -231,9 +223,9 @@ public final class CliParser {
public void printHelp() { public void printHelp() {
HelpFormatter formatter = new HelpFormatter(); HelpFormatter formatter = new HelpFormatter();
formatter.printHelp(Settings.getString("application.name", "DependencyCheck"), formatter.printHelp(Settings.getString("application.name", "DependencyCheck"),
"\n" + Settings.getString("application.name", "DependencyCheck") + "\n" + Settings.getString("application.name", "DependencyCheck")
" can be used to identify if there are any known CVE vulnerabilities in libraries utillized by an application." + + " can be used to identify if there are any known CVE vulnerabilities in libraries utillized by an application. "
" " + Settings.getString("application.name", "DependencyCheck") + " will automatically update required data from the Internet, such as the CVE and CPE data files from nvd.nist.gov.\n", + Settings.getString("application.name", "DependencyCheck") + " will automatically update required data from the Internet, such as the CVE and CPE data files from nvd.nist.gov.\n",
options, "", true); options, "", true);
} }

View File

@@ -94,12 +94,12 @@ public class Settings {
*/ */
public static String getString(String key, String defaultValue) { public static String getString(String key, String defaultValue) {
String str = System.getProperty(key, instance.props.getProperty(key)); String str = System.getProperty(key, instance.props.getProperty(key));
if (str==null) { if (str == null) {
str = defaultValue; str = defaultValue;
} }
return str; return str;
} }
/** /**
* Returns a value from the properties file. If the value was specified as a * Returns a value from the properties file. If the value was specified as a
* system property or passed in via the -Dprop=value argument - this method * system property or passed in via the -Dprop=value argument - this method

View File

@@ -3,8 +3,6 @@
<bannerLeft> <bannerLeft>
<name>DependencyCheck</name> <name>DependencyCheck</name>
</bannerLeft> </bannerLeft>
<bannerRight>
</bannerRight>
<body> <body>
<menu ref="reports" /> <menu ref="reports" />
</body> </body>