-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
9,966 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
# OneS_ClusterAdmin | ||
Утилита для интерактивного администрирования кластера серверов 1С | ||
## Утилита для интерактивного администрирования серверов 1С | ||
|
||
Готовится статья с описанием возможностей утилиты на Infostart https://infostart.ru/public/1489055/ | ||
|
||
Разработка ведется в `Eclipse IDE for Java Developers` | ||
|
||
Для разработки необходимо: | ||
- установить в локальный репозиторий maven jar-библиотеки (описано в примечании) расположеные в каталоге clusterAdminLibrary\lib командой `mvn install:install-file`. Пример команд в файле `install-libs.bat` | ||
|
||
|
||
Сборка: | ||
|
||
- установить в локальный репозиторий библиотеку clusterAdminLibrary выполнив команду `mvn clean install`. Пример в clusterAdminLibrary\install.bat | ||
|
||
- выполнить команду `mvn clean package` для сборки приложения для Windows (профиль по-умолчанию), либо с указанием конкретной ОС `mvn clean package -Plinux`, либо для всех трех ОС командой из clusterAdminApplication\package.bat | ||
|
||
### Примечание: | ||
|
||
Для соединения с RAS используется "Программный Java-интерфейс для административного сервера", который опубликован в свободном доступе на сайте ИТС в разделе "Методическая поддержка для разработчиков и администраторов 1С:Предприятия 8" (https://its.1c.ru/db/metod8dev#content:4985:hdoc). | ||
Есть две версии: | ||
- для 8.3.6 - 8.3.10 | ||
- для 8.3.11+ | ||
|
||
В утилите используется версия для 8.3.11+, которая успешно работает с платформой 8.3.10. Платформ версий ниже 8.3.10 в своем распоряжении не имею, а потому работа с ними не тестировалась. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/logs/ | ||
/bin/ | ||
/config.json | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>clusterAdminApplication</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments></arguments></buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
</natures> | ||
</projectDescription> |
15 changes: 15 additions & 0 deletions
15
clusterAdminApplication/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=11 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning | ||
org.eclipse.jdt.core.compiler.release=disabled | ||
org.eclipse.jdt.core.compiler.source=11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mvn clean package -Pwindows-x86_64 & mvn package -Plinux & mvn package -PmacOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,288 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>ru.yanygin</groupId> | ||
<artifactId>ru.yanygin.clusterAdminApplication</artifactId> | ||
<version>0.1.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<properties> | ||
<maven.compiler.source>11</maven.compiler.source> | ||
<maven.compiler.target>11</maven.compiler.target> | ||
<!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> --> | ||
</properties> | ||
|
||
<profiles> | ||
<profile> | ||
<id>linux</id> | ||
<activation> | ||
<os> | ||
<family>unix</family> | ||
<arch>amd64</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<swt.artifactId>org.eclipse.swt.gtk.linux.x86_64</swt.artifactId> | ||
</properties> | ||
<build> | ||
<finalName>OneS_ClusterAdmin-${project.version}-linux</finalName> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>macOS</id> | ||
<activation> | ||
<os> | ||
<family>mac</family> | ||
</os> | ||
</activation> | ||
<properties> | ||
<swt.artifactId>org.eclipse.swt.cocoa.macosx.x86_64</swt.artifactId> | ||
</properties> | ||
<build> | ||
<finalName>OneS_ClusterAdmin-${project.version}-macOS</finalName> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>windows-x86</id> | ||
<activation> | ||
<os> | ||
<family>windows</family> | ||
<arch>x86</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<swt.artifactId>org.eclipse.swt.win32.win32.x86</swt.artifactId> | ||
</properties> | ||
<build> | ||
<finalName>OneS_ClusterAdmin-${project.version}-windows-x86</finalName> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>windows-x86_64</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
<os> | ||
<family>windows</family> | ||
<arch>x86_64</arch> | ||
</os> | ||
</activation> | ||
<properties> | ||
<swt.artifactId>org.eclipse.swt.win32.win32.x86_64</swt.artifactId> | ||
</properties> | ||
<build> | ||
<finalName>OneS_ClusterAdmin-${project.version}-windows-x64</finalName> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>3.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.30</version> | ||
</dependency> | ||
|
||
<!-- Logback --> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<version>1.2.3</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-core</artifactId> | ||
<version>1.2.3</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.win32.win32.x86_64 --> | ||
<!-- https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.gtk.linux.x86_64 --> | ||
<dependency> | ||
<groupId>org.eclipse.platform</groupId> | ||
<artifactId>${swt.artifactId}</artifactId> | ||
<version>3.116.0</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.jface --> | ||
<dependency> | ||
<groupId>org.eclipse.platform</groupId> | ||
<artifactId>org.eclipse.jface</artifactId> | ||
<version>3.22.0</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>2.8.6</version> | ||
</dependency> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.jboss.netty/netty --> | ||
<dependency> | ||
<groupId>org.jboss.netty</groupId> | ||
<artifactId>netty</artifactId> | ||
<version>3.2.6.Final</version> | ||
</dependency> | ||
|
||
<!-- 1c-libs from local rep --> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.core</artifactId> | ||
<version>1.0.30-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.ibis.admin</artifactId> | ||
<version>1.6.7</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.ibis.swp</artifactId> | ||
<version>1.1.1-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.ibis</artifactId> | ||
<version>1.1.1-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.swp.netty</artifactId> | ||
<version>1.0.3-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com._1c.v8</groupId> | ||
<artifactId>com._1c.v8.swp</artifactId> | ||
<version>1.0.3-SNAPSHOT</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>ru.yanygin</groupId> | ||
<artifactId>ru.yanygin.clusterAdminLibrary</artifactId> | ||
<version>0.1.0-SNAPSHOT</version> | ||
</dependency> | ||
|
||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>11</source> | ||
<target>11</target> | ||
<!-- <encoding>UTF-8</encoding> --> | ||
<!-- <includes> --> | ||
<!-- <include>ru/</include> --> | ||
<!-- <include>org/</include> --> | ||
<!-- <include>src/main/java/</include> --> | ||
<!-- <include>src/test/java/</include> --> | ||
<!-- <include>lib/*.jar</include> --> | ||
<!-- </includes> --> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- <plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
--> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.2.0</version> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<addClasspath>true</addClasspath> | ||
<classpathPrefix>lib/</classpathPrefix> | ||
<mainClass>ru.yanygin.clusterAdminApplication.ClusterAdmin</mainClass> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- копирование зависимостей оставим на само приложение --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>2.5.1</version> | ||
<configuration> | ||
<outputDirectory> | ||
${project.build.directory}/lib/ | ||
</outputDirectory> | ||
<overWriteReleases>false</overWriteReleases> | ||
<overWriteSnapshots>false</overWriteSnapshots> | ||
<overWriteIfNewer>true</overWriteIfNewer> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>copy-dependencies</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin --> | ||
<!-- сборка uberjar: mvn clean compile assembly:single --> | ||
<!-- сборка для linux: mvn clean compile assembly:single -Plinux --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.3.0</version> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<mainClass>ru.yanygin.clusterAdminApplication.ClusterAdmin</mainClass> | ||
</manifest> | ||
</archive> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> <!-- this is used for inheritance merges --> | ||
<phase>package</phase> <!-- bind to the packaging phase --> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.