Author: bodewig Date: Wed Sep 7 11:10:57 2005 New Revision: 279394 URL: http://svn.apache.org/viewcvs?rev=279394&view=rev Log: fix line-feeds, set svn:eol-style Modified: ant/core/trunk/docs/svn.html (contents, props changed) ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java ant/core/trunk/xdocs/svn.xml (contents, props changed) Modified: ant/core/trunk/docs/svn.html URL: http://svn.apache.org/viewcvs/ant/core/trunk/docs/svn.html?rev=279394&r1=279393&r2=279394&view=diff ============================================================================== --- ant/core/trunk/docs/svn.html (original) +++ ant/core/trunk/docs/svn.html Wed Sep 7 11:10:57 2005 @@ -1,220 +1,220 @@ - - - - - - - - Apache Ant - SVN Repositories - - - - - - - - -
- - - - - - -
Apache Ant siteApache Ant logo -
- - - - - - - - - - - - - - -
- - - - -
- the Apache Ant site -
-
-
-
- -
- - - - - -
- - - - -
Home
-
- - - - -
Projects
-
-
- -
- - -
 
-
-
-

SVN Repositories

-

- - Access the Source Tree (Subversion) -

-

Anyone can checkout source code from our public Subversion repository. To do so, - simply use the following command (if you are using a GUI client, configure it - appropriately):

-
-svn co http://svn.apache.org/repos/asf/ant/[project]/trunk/ ant-[project]
-

Modules available for access are:

- -

If you are not familiar with Subversion, Jakarta's - source repositories page may hold many helpful hints.

-

Nightly snapshots of the CVS tree are available at - http://cvs.apache.org/snapshots/ant/.

- -
-
- - - - - - - - - - - - - - - + + + + + + + + Apache Ant - SVN Repositories + + + + + + + + +
+ + + + + + +
Apache Ant siteApache Ant logo +
+ + + + + + + + + + + + + + +
+ + + + +
+ the Apache Ant site +
+
+
+
+ +
+ + + + + +
+ + + + +
Home
+
+ + + + +
Projects
+
+
+ +
+ + +
 
+
+
+

SVN Repositories

+

+ + Access the Source Tree (Subversion) +

+

Anyone can checkout source code from our public Subversion repository. To do so, + simply use the following command (if you are using a GUI client, configure it + appropriately):

+
+svn co http://svn.apache.org/repos/asf/ant/[project]/trunk/ ant-[project]
+

Modules available for access are:

+ +

If you are not familiar with Subversion, Jakarta's + source repositories page may hold many helpful hints.

+

Nightly snapshots of the CVS tree are available at + http://cvs.apache.org/snapshots/ant/.

+ +
+
+ + + + + + + + + + + + + + + Propchange: ant/core/trunk/docs/svn.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java?rev=279394&r1=279393&r2=279394&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/AbstractSshMessage.java Wed Sep 7 11:10:57 2005 @@ -157,7 +157,7 @@ */ protected void logStats(long timeStarted, long timeEnded, - int totalLength) { + long totalLength) { double duration = (timeEnded - timeStarted) / 1000.0; NumberFormat format = NumberFormat.getNumberInstance(); format.setMaximumFractionDigits(2); @@ -184,7 +184,7 @@ * @param percentTransmitted the current percent transmitted * @return the percent that the file is of the total */ - protected final int trackProgress(int filesize, int totalLength, + protected final int trackProgress(long filesize, long totalLength, int percentTransmitted) { int percent = (int) Math.round(Math.floor((totalLength Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java?rev=279394&r1=279393&r2=279394&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpFromMessage.java Wed Sep 7 11:10:57 2005 @@ -163,7 +163,7 @@ int end = serverResponse.indexOf(" ", start + 1); start = end + 1; end = serverResponse.indexOf(" ", start + 1); - int filesize = Integer.parseInt(serverResponse.substring(start, end)); + long filesize = Long.parseLong(serverResponse.substring(start, end)); String filename = serverResponse.substring(end + 1); log("Receiving: " + filename + " : " + filesize); File transferFile = (localFile.isDirectory()) @@ -175,7 +175,7 @@ } private void fetchFile(File localFile, - int filesize, + long filesize, OutputStream out, InputStream in) throws IOException { byte[] buf = new byte[BUFFER_SIZE]; @@ -184,20 +184,21 @@ // read a content of lfile FileOutputStream fos = new FileOutputStream(localFile); int length; - int totalLength = 0; + long totalLength = 0; long startTime = System.currentTimeMillis(); // only track progress for files larger than 100kb in verbose mode boolean trackProgress = getVerbose() && filesize > 102400; // since filesize keeps on decreasing we have to store the // initial filesize - int initFilesize = filesize; + long initFilesize = filesize; int percentTransmitted = 0; try { while (true) { length = in.read(buf, 0, - (buf.length < filesize) ? buf.length : filesize); + (BUFFER_SIZE < filesize) ? BUFFER_SIZE + : (int) filesize); if (length < 0) { throw new EOFException("Unexpected end of stream."); } Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java?rev=279394&r1=279393&r2=279394&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ssh/ScpToMessage.java Wed Sep 7 11:10:57 2005 @@ -197,7 +197,7 @@ InputStream in, OutputStream out) throws IOException { // send "C0644 filesize filename", where filename should not include '/' - int filesize = (int) localFile.length(); + long filesize = localFile.length(); String command = "C0644 " + filesize + " "; command += localFile.getName(); command += "\n"; @@ -211,13 +211,13 @@ FileInputStream fis = new FileInputStream(localFile); byte[] buf = new byte[BUFFER_SIZE]; long startTime = System.currentTimeMillis(); - int totalLength = 0; + long totalLength = 0; // only track progress for files larger than 100kb in verbose mode boolean trackProgress = getVerbose() && filesize > 102400; // since filesize keeps on decreasing we have to store the // initial filesize - int initFilesize = filesize; + long initFilesize = filesize; int percentTransmitted = 0; try { Modified: ant/core/trunk/xdocs/svn.xml URL: http://svn.apache.org/viewcvs/ant/core/trunk/xdocs/svn.xml?rev=279394&r1=279393&r2=279394&view=diff ============================================================================== --- ant/core/trunk/xdocs/svn.xml (original) +++ ant/core/trunk/xdocs/svn.xml Wed Sep 7 11:10:57 2005 @@ -1,52 +1,52 @@ - - - - - - SVN Repositories - Antoine Levy-Lambert - - - - -
- -

Anyone can checkout source code from our public Subversion repository. To do so, - simply use the following command (if you are using a GUI client, configure it - appropriately):

- - -svn co http://svn.apache.org/repos/asf/ant/[project]/trunk/ ant-[project] - -

Modules available for access are:

- - - -

If you are not familiar with Subversion, Jakarta's - source repositories page may hold many helpful hints.

- -

Nightly snapshots of the CVS tree are available at - http://cvs.apache.org/snapshots/ant/.

- -
- + + + + + + SVN Repositories + Antoine Levy-Lambert + + + + +
+ +

Anyone can checkout source code from our public Subversion repository. To do so, + simply use the following command (if you are using a GUI client, configure it + appropriately):

+ + +svn co http://svn.apache.org/repos/asf/ant/[project]/trunk/ ant-[project] + +

Modules available for access are:

+ +
    +
  • ant - The "main" Ant module.
  • +
  • antlibs - Libraries developed as antlib.
  • +
  • sandbox - New developments.
  • +
+ +

If you are not familiar with Subversion, Jakarta's + source repositories page may hold many helpful hints.

+ +

Nightly snapshots of the CVS tree are available at + http://cvs.apache.org/snapshots/ant/.

+ +
+
Propchange: ant/core/trunk/xdocs/svn.xml ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org