Browse Source

stylecheck - javadoc + linelength

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277957 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
03e5b39cfb
1 changed files with 15 additions and 2 deletions
  1. +15
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java

+ 15
- 2
src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2004 The Apache Software Foundation
* Copyright 2002-2005 The Apache Software Foundation
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -50,6 +50,7 @@ public class SplashTask extends Task {
/** /**
* A URL pointing to an image to display; optional, default antlogo.gif * A URL pointing to an image to display; optional, default antlogo.gif
* from the classpath. * from the classpath.
* @param imgurl the url string pointing to the image
*/ */
public void setImageURL(String imgurl) { public void setImageURL(String imgurl) {
this.imgurl = imgurl; this.imgurl = imgurl;
@@ -58,6 +59,7 @@ public class SplashTask extends Task {
/** /**
* flag to enable proxy settings; optional, deprecated : consider * flag to enable proxy settings; optional, deprecated : consider
* using <setproxy> instead * using <setproxy> instead
* @param useProxy if ture, enable proxy settings
* @deprecated use org.apache.tools.ant.taskdefs.optional.SetProxy * @deprecated use org.apache.tools.ant.taskdefs.optional.SetProxy
*/ */
public void setUseproxy(boolean useProxy) { public void setUseproxy(boolean useProxy) {
@@ -66,6 +68,7 @@ public class SplashTask extends Task {


/** /**
* name of proxy; optional. * name of proxy; optional.
* @param proxy the name of the proxy host
*/ */
public void setProxy(String proxy) { public void setProxy(String proxy) {
this.proxy = proxy; this.proxy = proxy;
@@ -73,6 +76,7 @@ public class SplashTask extends Task {


/** /**
* Proxy port; optional, default 80. * Proxy port; optional, default 80.
* @param port the proxy port
*/ */
public void setPort(String port) { public void setPort(String port) {
this.port = port; this.port = port;
@@ -80,6 +84,7 @@ public class SplashTask extends Task {


/** /**
* Proxy user; optional, default =none. * Proxy user; optional, default =none.
* @param user the proxy user
*/ */
public void setUser(String user) { public void setUser(String user) {
this.user = user; this.user = user;
@@ -87,6 +92,7 @@ public class SplashTask extends Task {


/** /**
* Proxy password; required if <tt>user</tt> is set. * Proxy password; required if <tt>user</tt> is set.
* @param password the proxy password
*/ */
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
@@ -95,12 +101,17 @@ public class SplashTask extends Task {
/** /**
* how long to show the splash screen in milliseconds, * how long to show the splash screen in milliseconds,
* optional; default 5000 ms. * optional; default 5000 ms.
* @param duration the spash duration in milliseconds
*/ */
public void setShowduration(int duration) { public void setShowduration(int duration) {
this.showDuration = duration; this.showDuration = duration;
} }




/**
* Execute the task.
* @throws BuildException on error
*/
public void execute() throws BuildException { public void execute() throws BuildException {
if (splash != null) { if (splash != null) {
splash.setVisible(false); splash.setVisible(false);
@@ -129,7 +140,8 @@ public class SplashTask extends Task {
conn = url.openConnection(); conn = url.openConnection();
if (user != null && user.length() > 0) { if (user != null && user.length() > 0) {
String encodedcreds = String encodedcreds =
new sun.misc.BASE64Encoder().encode((new String(user + ":" + password)).getBytes());
new sun.misc.BASE64Encoder().encode(
(new String(user + ":" + password)).getBytes());
conn.setRequestProperty("Proxy-Authorization", conn.setRequestProperty("Proxy-Authorization",
encodedcreds); encodedcreds);
} }
@@ -217,6 +229,7 @@ public class SplashTask extends Task {
try { try {
Thread.sleep(showDuration); Thread.sleep(showDuration);
} catch (InterruptedException e) { } catch (InterruptedException e) {
// Ignore Exception
} }
} }
} }


Loading…
Cancel
Save