Compare commits

..

10 Commits

Author SHA1 Message Date
Shikhar Bhushan
f2abc4b397 [maven-release-plugin] prepare release v0.2.3 2010-06-13 14:28:27 +01:00
Shikhar Bhushan
fe0d42fc97 [maven-release-plugin] prepare for next development iteration 2010-06-13 13:58:59 +01:00
Shikhar Bhushan
19e4670c24 [maven-release-plugin] prepare release v0.2.2 2010-06-13 13:58:51 +01:00
Shikhar Bhushan
fbd6e00720 [maven-release-plugin] prepare for next development iteration 2010-06-13 00:11:53 +01:00
Shikhar Bhushan
f69cdb1505 [maven-release-plugin] prepare release v0.2.1 2010-06-13 00:11:42 +01:00
Shikhar Bhushan
135b1c819b dep update 2010-06-13 00:09:11 +01:00
Shikhar Bhushan
9c51b862cd can't throw exception, shit fails on windows 2010-06-12 23:10:47 +01:00
Shikhar Bhushan
a6353cbb2d 2010-05-31 16:24:17 -07:00
Shikhar Bhushan
f11055a726 java 1.6 is a dep 2010-06-01 00:20:38 +01:00
Shikhar Bhushan
da98153ab6 [maven-release-plugin] prepare for next development iteration 2010-05-31 00:02:39 +01:00
3 changed files with 12 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ If you need something that is not implemented, it shouldn't be too hard to add (
Dependencies
-------------
slf4j_ is required. bouncycastle_ is highly recommended and required for using some of the crypto algorithms.
Java 6+. slf4j_ is required. bouncycastle_ is highly recommended and required for using some of the crypto algorithms.
jzlib_ is required for using zlib compression.

View File

@@ -6,7 +6,7 @@
<groupId>net.schmizz</groupId>
<artifactId>sshj</artifactId>
<packaging>jar</packaging>
<version>0.2.0</version>
<version>0.2.3</version>
<name>sshj</name>
<description>SSHv2 library for Java</description>
@@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.45</version>
<scope>provided</scope>
</dependency>
@@ -111,7 +111,7 @@
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-4</version>
<version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>src/assemble/examples.xml</descriptor>
@@ -176,7 +176,7 @@
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<artifactId>bcprov-jdk16</artifactId>
<version>1.45</version>
</dependency>
<dependency>

View File

@@ -15,6 +15,9 @@
*/
package net.schmizz.sshj.xfer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
@@ -26,6 +29,8 @@ import java.io.IOException;
public class DefaultModeSetter
implements ModeSetter {
private final Logger log = LoggerFactory.getLogger(getClass());
@Override
public void setLastAccessedTime(File f, long t)
throws IOException {
@@ -36,7 +41,7 @@ public class DefaultModeSetter
public void setLastModifiedTime(File f, long t)
throws IOException {
if (!f.setLastModified(t * 1000))
throw new IOException("Error setting last modified time for " + f);
log.warn("Could not set last modified time for {} to {}", f, t);
}
@Override
@@ -49,7 +54,7 @@ public class DefaultModeSetter
final boolean x = f.setExecutable(FilePermission.USR_X.isIn(perms),
!(FilePermission.OTH_X.isIn(perms) || FilePermission.GRP_X.isIn(perms)));
if (!(r && w && x))
throw new IOException("Error setting permissions for " + f);
log.warn("Could not set permissions for {} to {}", f, Integer.toString(perms, 16));
}
@Override