Commit 6203bfef authored by Jaroslav Tulach's avatar Jaroslav Tulach
Browse files

Make sure only 3rdparty update center remais enabled

parent ac183a79
......@@ -139,7 +139,11 @@
<zip destfile="${build.dir}/apache-netbeans-java-${vsix.version}.vsix" basedir="${build.dir}/vscode-mandatory/" update="true" />
</target>
<target name="test-vscode-ext" description="Tests the Visual Studio Code extension built by 'build-vscode-ext' target.">
<target name="test-lsp-server" description="Tests the LSP server behavior">
<ant dir="nbcode" target="test" inheritall="false" inheritrefs="false" />
</target>
<target name="test-vscode-ext" depends="test-lsp-server" description="Tests the Visual Studio Code extension built by 'build-vscode-ext' target.">
<exec executable="npm" failonerror="true" dir="vscode">
<arg value="--allow-same-version"/>
<arg value="run" />
......
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: false
OpenIDE-Module: org.netbeans.modules.nbcode.integration
OpenIDE-Module-Layer: org/netbeans/modules/nbcode/integration/layer.xml
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/nbcode/integration/Bundle.properties
OpenIDE-Module-Specification-Version: 1.0
OpenIDE-Module-Recommends: cnb.org.netbeans.modules.gradle.java
......
......@@ -99,7 +99,24 @@
<specification-version>8.44</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.updatecenters</code-name-base>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.51</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<test-dependencies>
<test-type>
<name>unit</name>
<test-dependency>
<code-name-base>org.netbeans.modules.nbjunit</code-name-base>
<compile-dependency/>
<recursive/>
</test-dependency>
</test-type>
</test-dependencies>
<public-packages/>
</data>
</configuration>
......
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.nbcode.integration;
import java.util.Arrays;
import org.netbeans.junit.NbModuleSuite;
import org.netbeans.junit.NbTestCase;
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;
public class VerifyJustOneUpdateCenterTest extends NbTestCase {
public VerifyJustOneUpdateCenterTest(String name) {
super(name);
}
public static junit.framework.Test suite() {
return NbModuleSuite.createConfiguration(VerifyJustOneUpdateCenterTest.class).
gui(true).
suite();
}
public void testUpdateCenters() {
FileObject services = FileUtil.getConfigRoot().getFileObject("Services");
assertNotNull("Services found", services);
FileObject au = services.getFileObject("AutoupdateType");
assertNotNull("AutoUpdate folder found", au);
FileObject[] arr = au.getChildren();
assertEquals("Just one AutoUpdate center registration: " + Arrays.toString(arr), 1, arr.length);
assertEquals("3rdparty.instance", arr[0].getNameExt());
}
}
......@@ -22,6 +22,7 @@ cluster.path=\
${nbplatform.active.dir}/java:\
${nbplatform.active.dir}/nb:\
${nbplatform.active.dir}/platform:\
${nbplatform.active.dir}/harness:\
${nbplatform.active.dir}/webcommon
disabled.modules=\
bcpg,\
......@@ -82,6 +83,8 @@ disabled.modules=\
org.netbeans.libs.jsr223,\
org.netbeans.libs.jstestdriver,\
org.netbeans.libs.jvyamlb,\
org.netbeans.libs.nbi.ant,\
org.netbeans.libs.nbi.engine,\
org.netbeans.libs.plist,\
org.netbeans.libs.smack,\
org.netbeans.libs.springframework,\
......@@ -94,6 +97,7 @@ disabled.modules=\
org.netbeans.modules.ant.grammar,\
org.netbeans.modules.ant.hints,\
org.netbeans.modules.ant.kit,\
org.netbeans.modules.apisupport.harness,\
org.netbeans.modules.applemenu,\
org.netbeans.modules.autoupdate.pluginimporter,\
org.netbeans.modules.beans,\
......@@ -233,6 +237,8 @@ disabled.modules=\
org.netbeans.modules.javawebstart,\
org.netbeans.modules.jellytools.ide,\
org.netbeans.modules.jellytools.java,\
org.netbeans.modules.jellytools.platform,\
org.netbeans.modules.jemmy,\
org.netbeans.modules.jshell.support,\
org.netbeans.modules.junit.ant,\
org.netbeans.modules.junit.ant.ui,\
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment