Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ide/c.jcraft.jsch/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@
<project name="ide/c.jcraft.jsch" default="build" basedir=".">
<import file="../../nbbuild/templates/projectized.xml"/>
<target name="jar" depends="-define-FileCRC32Calculator">
<FileCRC32Calculator file="external/jsch-0.1.72.jar" property="c.jcraft.jsch.crc32" />
<FileCRC32Calculator file="external/jsch-2.28.0.jar" property="c.jcraft.jsch.crc32" />
<jar jarfile="${cluster}/${module.jar}">
<zipfileset src="external/jsch-0.1.72.jar"/>
<zipfileset src="external/jsch-2.28.0.jar"/>
<manifest>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-SymbolicName" value="com.jcraft.jsch"/>
<attribute name="Bundle-Version" value="0.1.72"/>
<attribute name="Export-Package" value="com.jcraft.jsch;version=0.1.72"/>
<attribute name="Bundle-Version" value="2.28.0"/>
<attribute name="Export-Package" value="com.jcraft.jsch;version=2.28.0"/>
<attribute name="Import-Package" value="javax.crypto,javax.crypto.spec,javax.crypto.interfaces,org.ietf.jgss"/>
<!-- Ensure that the necessary modules/bundles are made available to JSch -->
<attribute name="Require-Bundle" value="com.jcraft.jzlib,bcprov,libs.c.kohlschutter.junixsocket,org.netbeans.libs.jna,org.netbeans.libs.jna.platform"/>
<attribute name="Require-Bundle" value="com.jcraft.jzlib,bcprov,org.netbeans.libs.jna,org.netbeans.libs.jna.platform"/>
<attribute name="NB-Original-CRC" value="${c.jcraft.jsch.crc32}"/>
<attribute name="Multi-Release" value="true"/>
</manifest>
Expand Down
2 changes: 1 addition & 1 deletion ide/c.jcraft.jsch/external/binaries-list
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
470C45A2B42103D48772F877B1C7287619AD490E com.github.mwiede:jsch:0.1.72
677E8DD6F415AF40B10B921C94D82FD82034D822 com.github.mwiede:jsch:2.28.0
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Name: JSch
Version: 0.1.72
Version: 2.28.0
License: BSD-jsch
Origin: JCraft Inc.
URL: https://github.com/mwiede/jsch/tree/jsch-0.1.72
URL: https://github.com/mwiede/jsch/tree/jsch-2.28.0
Description: Java implementation of SSH2

Copyright (c) 2002-2015 Atsuhiko Yamanaka, JCraft,Inc.
Expand Down
2 changes: 1 addition & 1 deletion ide/c.jcraft.jsch/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# under the License.

is.autoload=true
extra.license.files=external/jsch-0.1.72-license.txt
extra.license.files=external/jsch-2.28.0-license.txt
sigtest.gen.fail.on.error=false

11 changes: 1 addition & 10 deletions ide/c.jcraft.jsch/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@
<compile-dependency/>
<run-dependency/>
</dependency>
<dependency>
<code-name-base>libs.c.kohlschutter.junixsocket</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<specification-version>3.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.libs.jna</code-name-base>
<build-prerequisite/>
Expand All @@ -69,7 +60,7 @@
</public-packages>
<class-path-extension>
<runtime-relative-path>com-jcraft-jsch.jar</runtime-relative-path>
<binary-origin>external/jsch-0.1.72.jar</binary-origin>
<binary-origin>external/jsch-2.28.0.jar</binary-origin>
</class-path-extension>
</data>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion ide/docker.api/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

is.autoload=true
javac.compilerargs=-Xlint -Xlint:-serial
javac.release=17
javac.release=21

9 changes: 0 additions & 9 deletions ide/docker.api/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.docker.api</code-name-base>
<module-dependencies>
<dependency>
<code-name-base>libs.c.kohlschutter.junixsocket</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<specification-version>3.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.api.annotations.common</code-name-base>
<build-prerequisite/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.netbeans.modules.docker.DirectStreamResult;
import org.netbeans.modules.docker.Demuxer;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
Expand All @@ -45,8 +44,11 @@
import java.net.Socket;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.UnixDomainSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -78,8 +80,6 @@
import org.netbeans.modules.docker.DockerUtils;
import org.netbeans.modules.docker.Endpoint;
import org.netbeans.modules.docker.StreamResult;
import org.newsclub.net.unix.AFUNIXSocket;
import org.newsclub.net.unix.AFUNIXSocketAddress;
import org.openide.filesystems.FileObject;
import org.openide.util.Pair;
import org.openide.util.Parameters;
Expand Down Expand Up @@ -1269,10 +1269,8 @@ private Endpoint createEndpoint() throws IOException {
s.connect(new InetSocketAddress(realUrl.getHost(), port));
return Endpoint.forSocket(s);
} else if ("file".equals(realUrl.getProtocol())) {
AFUNIXSocket s = AFUNIXSocket.newInstance();
AFUNIXSocketAddress sockAdd = AFUNIXSocketAddress.of(new File(realUrl.getFile()));
s.connect(sockAdd);
return Endpoint.forSocket(s);
SocketChannel channel = SocketChannel.open(UnixDomainSocketAddress.of(Path.of(realUrl.getFile())));
return Endpoint.forSocket(channel.socket());
} else {
throw new IOException("Unknown protocol: " + realUrl.getProtocol());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.prefs.Preferences;
import javax.swing.event.ChangeListener;
import org.netbeans.api.annotations.common.NonNull;
import org.newsclub.net.unix.AFUNIXSocket;
import org.openide.util.ChangeSupport;
import org.openide.util.NbPreferences;
import org.openide.util.Parameters;
Expand Down Expand Up @@ -128,7 +127,7 @@ public void removeChangeListener(ChangeListener listener) {
}

public boolean isSocketSupported() {
return AFUNIXSocket.isSupported();
return true;
}

private boolean isInitialized() {
Expand Down
43 changes: 0 additions & 43 deletions ide/libs.c.kohlschutter.junixsocket/build.xml

This file was deleted.

18 changes: 0 additions & 18 deletions ide/libs.c.kohlschutter.junixsocket/external/binaries-list

This file was deleted.

Loading
Loading