Author: pottlinger
Date: Tue Aug 12 21:57:02 2014
New Revision: 1617605
URL: http://svn.apache.org/r1617605
Log:
TENTACLES-3: Provde help text in case number of arguments is to low
-To prevent NPEs the number of parameters is checked. Output is printed via
logger to comply with the current Tentacles architecture.
Modified:
creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
Modified:
creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
URL:
http://svn.apache.org/viewvc/creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java?rev=1617605&r1=1617604&r2=1617605&view=diff
==============================================================================
---
creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
(original)
+++
creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
Tue Aug 12 21:57:02 2014
@@ -99,7 +99,16 @@ public class Main {
}
public static void main(final String[] args) throws Exception {
- new Main(args).main();
+
+ log.info("Launching Apache Tentacles ...");
+
+ if(args == null || args.length < 1) {
+ log.error("Error: Input parameter missing - you did not specify
any component to run Apache Tentacles on.");
+ log.error("Please launch Apache Tentacles with an URI to work
on such as
'https://repository.apache.org/content/repositories/orgapachecreadur-1000/'.");
+ } else {
+ new Main(args).main();
+ }
+
}
private void main() throws Exception {