This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse TypeScript DTO that are generated by maven typescript DTO plugin
it allows to reuse correct objects provided by the server with type safe Change-Id: I7b59dfccf2fb0a5885ec0aedbe80f2ca67752760 Signed-off-by: Florent BENOIT <[email protected]>
- Loading branch information
Showing
23 changed files
with
289 additions
and
337 deletions.
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ test-output/ | |
|
||
.DAV | ||
|
||
che-dto.ts |
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,8 @@ | ||
#!/bin/sh | ||
DIR=$(cd "$(dirname "$0")"; pwd) | ||
echo "Generating TypeScript DTO from $DIR directory" | ||
cd $DIR | ||
rm -rf target | ||
docker run -it --rm -v "$HOME/.m2:/root/.m2" -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn -DskipTests=true -Dfindbugs.skip=true -Dskip-validate-sources install | ||
mkdir -p ../typescript/src/api/dto | ||
cp target/dto-typescript.ts ../typescript/src/api/dto/che-dto.ts |
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,122 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2012-2016 Codenvy, S.A. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
Contributors: | ||
Codenvy, S.A. - initial API and implementation | ||
--> | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>maven-depmgt-pom</artifactId> | ||
<groupId>org.eclipse.che.depmgt</groupId> | ||
<version>5.0.0-M3-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>dto-typescript</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Che TypeScript DTO</name> | ||
<properties> | ||
<che.version>5.0.0-M3-SNAPSHOT</che.version> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>codenvy-public-repo</id> | ||
<name>codenvy public</name> | ||
<url>https://maven.codenvycorp.com/content/groups/public/</url> | ||
</repository> | ||
<repository> | ||
<id>codenvy-public-snapshots-repo</id> | ||
<name>codenvy public snapshots</name> | ||
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url> | ||
</repository> | ||
</repositories> | ||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>codenvy-public-repo</id> | ||
<name>codenvy public</name> | ||
<url>https://maven.codenvycorp.com/content/groups/public/</url> | ||
</pluginRepository> | ||
<pluginRepository> | ||
<id>codenvy-public-snapshots-repo</id> | ||
<name>codenvy public snapshots</name> | ||
<url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-typescript-dto-maven-plugin</artifactId> | ||
<version>${che.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-agent-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-debug-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-factory-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-git-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-machine-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-project-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-project-templates-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-ssh-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-user-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.che.core</groupId> | ||
<artifactId>che-core-api-workspace-shared</artifactId> | ||
<version>${che.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<inherited>false</inherited> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
File renamed without changes.
24 changes: 0 additions & 24 deletions
24
lib/typescript/src/api/wsmaster/machine/dto/machine-process-dto.ts
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.