-
Notifications
You must be signed in to change notification settings - Fork 103
#1007: implement domain model for ide-urls #1040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hohwille
merged 12 commits into
devonfw:master
from
cinnamon-coder-hub:feature/UrlFolderhandling1007
Feb 13, 2023
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
eb5543b
#1007: Adding config files
cinnamon-coder-hub 1f26636
#1007: add folderhandling + minor changes
cinnamon-coder-hub fc02914
#1007: change to type int + javadoc change
cinnamon-coder-hub 19674a4
#1007: Added two ignore rules for sonatype lift
cinnamon-coder-hub 1f77a27
#1007: corrected .lift.toml file
cinnamon-coder-hub 2129530
#1007: Formatted code devonlike + lift proposition
cinnamon-coder-hub 512bddf
#1007: minor code improvement + reformatting
cinnamon-coder-hub b522529
#1007: corrected code acc to beans convention
cinnamon-coder-hub 7a22713
#1007: moved .lift.toml into root directory
cinnamon-coder-hub a123480
Merge branch 'master' into feature/UrlFolderhandling1007
cinnamon-coder-hub eaac65c
Merge branch 'master' into feature/UrlFolderhandling1007
hohwille 5eb1890
Merge branch 'master' into feature/UrlFolderhandling1007
hohwille File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 @@ | ||
| build = "mvn" | ||
|
|
||
| ignoreRules = [ "Var", "Varifier" ] |
This file contains hidden or 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 contains hidden or 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 contains hidden or 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 contains hidden or 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 contains hidden or 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,96 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <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> | ||
| <groupId>com.devonfw.tools.ide.dev</groupId> | ||
| <artifactId>devonfw-ide</artifactId> | ||
| <version>dev-SNAPSHOT</version> | ||
| </parent> | ||
| <groupId>com.devonfw.tools.ide</groupId> | ||
| <artifactId>devonfw-ide-url-updater</artifactId> | ||
| <packaging>jar</packaging> | ||
| <version>${revision}</version> | ||
| <name>${project.artifactId}</name> | ||
| <description>Code for maintenance of download urls of IDEs tools (Eclipse, Docker, etc.).</description> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>javax.json</groupId> | ||
| <artifactId>javax.json-api</artifactId> | ||
| <version>1.1.4</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.glassfish</groupId> | ||
| <artifactId>javax.json</artifactId> | ||
| <version>1.1.4</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| <version>2.14.1</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.logging.log4j</groupId> | ||
| <artifactId>log4j-core</artifactId> | ||
| <version>2.19.0</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| <version>2.0.3</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.datatype</groupId> | ||
| <artifactId>jackson-datatype-jsr310</artifactId> | ||
| <version>2.14.1</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.seleniumhq.selenium</groupId> | ||
| <artifactId>selenium-java</artifactId> | ||
| <version>4.7.2</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>io.github.bonigarcia</groupId> | ||
| <artifactId>webdrivermanager</artifactId> | ||
| <version>4.2.2</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-xml</artifactId> | ||
| <version>2.14.1</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-simple</artifactId> | ||
| <version>2.0.5</version> | ||
| </dependency> | ||
|
|
||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-jar-plugin</artifactId> | ||
| <configuration> | ||
| <archive> | ||
| <manifest> | ||
| <addClasspath>true</addClasspath> | ||
| <mainClass>com.devonfw.tools.ide.url.folderhandling.UrlRepository</mainClass> | ||
| </manifest> | ||
| </archive> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <source>11</source> | ||
| <target>11</target> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
|
|
||
| </project> | ||
27 changes: 27 additions & 0 deletions
27
url-updater/src/main/java/com/devonfw/tools/ide/url/folderhandling/UrlArtifact.java
This file contains hidden or 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 @@ | ||
| package com.devonfw.tools.ide.url.folderhandling; | ||
|
|
||
| import java.nio.file.Path; | ||
|
|
||
| import com.devonfw.tools.ide.url.folderhandling.abstractUrlClasses.AbstractUrlArtifact; | ||
|
|
||
| /** | ||
| * An {@link UrlArtifact} represents a file or folder in the directory structure of a devonfw-ide urls repository. | ||
| * | ||
| * @see UrlRepository | ||
| * @see UrlTool | ||
| * @see UrlEdition | ||
| * @see UrlVersion | ||
| * @see UrlDownloadFile | ||
| */ | ||
| public interface UrlArtifact { | ||
|
|
||
| /** | ||
| * @return the {@link Path} to this {@link AbstractUrlArtifact} as folder or file on the disc. | ||
cinnamon-coder-hub marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| */ | ||
| Path getPath(); | ||
|
|
||
| /** | ||
| * @return name the file-name of this {@link AbstractUrlArtifact}. | ||
| */ | ||
| String getName(); | ||
| } | ||
14 changes: 14 additions & 0 deletions
14
...updater/src/main/java/com/devonfw/tools/ide/url/folderhandling/UrlArtifactWithParent.java
This file contains hidden or 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,14 @@ | ||
| package com.devonfw.tools.ide.url.folderhandling; | ||
|
|
||
| /** | ||
| * Interface for an {@link UrlArtifact} that has a {@link #getParent() parent}. | ||
| * | ||
| * @param <P> type of the {@link #getParent() parent} {@link UrlFolder folder}. | ||
| */ | ||
| public interface UrlArtifactWithParent<P extends UrlFolder<?>> extends UrlArtifact { | ||
|
|
||
| /** | ||
| * @return the parent {@link UrlFolder} owning this artifact as child. | ||
| */ | ||
| P getParent(); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.