Skip to content

Commit 165edfa

Browse files
Revert "vSphere Automation SDK Java 9.0.0.0 release"
1 parent 10edb00 commit 165edfa

211 files changed

Lines changed: 28159 additions & 23 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016-2025 Broadcom, Inc.
3+
Copyright (c) 2016-2024 Broadcom, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

Lines changed: 342 additions & 6 deletions
Large diffs are not rendered by default.

checkstyle.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE module PUBLIC
3+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
5+
<module name="Checker">
6+
<property name="severity" value="error" />
7+
<module name="TreeWalker">
8+
<module name="LineLength">
9+
<property name="max" value="120" />
10+
<property name="ignorePattern" value="^(package|import).*"/>
11+
</module>
12+
<module name="WhitespaceAfter">
13+
<property name="tokens" value="COMMA, SEMI" />
14+
</module>
15+
<module name="IllegalImport" />
16+
<module name="RedundantImport" />
17+
<module name="UnusedImports" />
18+
<module name="AvoidStarImport" />
19+
<module name="AvoidStaticImport" />
20+
<module name="EqualsAvoidNull" />
21+
<module name="ExplicitInitialization" />
22+
<module name="IllegalCatch">
23+
<property name="severity" value="warning"/>
24+
</module>
25+
<module name="MissingSwitchDefault" />
26+
<module name="SimplifyBooleanExpression" />
27+
<module name="StringLiteralEquality" />
28+
<module name="SimplifyBooleanReturn" />
29+
<module name="MultipleStringLiterals">
30+
<property name="allowedDuplicates" value="3"/>
31+
<property name="ignoreStringsRegexp" value='(\[)|(\])|(/)|((\\n)+)'/>
32+
<property name="severity" value="warning"/>
33+
</module>
34+
<module name="MagicNumber">
35+
<property name="ignoreNumbers" value="-1, 0, 1, 2, 7, 8, 24, 60, 365, 1000, 1024"/>
36+
<property name="severity" value="warning"/>
37+
</module>
38+
</module>
39+
</module>

docker/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM maven:3.6.3-jdk-8
2+
MAINTAINER dx-sdk-iac@groups.vmware.com
3+
4+
# Set the working directory to /work
5+
WORKDIR /work
6+
7+
# Update and install packages
8+
RUN apt-get update
9+
RUN apt-get -y install vim \
10+
apt-utils \
11+
git
12+
13+
# Clone the project
14+
RUN git clone https://github.com/vmware/vsphere-automation-sdk-java.git
15+
16+
# Build the samples
17+
WORKDIR /work/vsphere-automation-sdk-java/
18+
RUN mvn initialize; mvn clean install
19+
CMD ["/bin/bash"]

docker/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# vSphere Automation SDK for Java Dockerfile
2+
3+
This contains a dockerfile to deploy the vSphere Automation SDK for Java and be up and running in seconds, this will allow you to simply try out the samples or produce your applications in a containerized environment.
4+
5+
## Building the container
6+
7+
Install a docker client for your chosen OS and run the following command to build the container directly from this repository:
8+
9+
```console
10+
docker build https://github.com/vmware/vsphere-automation-sdk-java.git#:docker -t vmware/vsphere-automation-sdk-java
11+
```
12+
13+
## Run the Container
14+
15+
Once the Container has been successfully built, you can run it using the following command:
16+
17+
```console
18+
$ docker run --rm -it vmware/vsphere-automation-sdk-java
19+
```
20+
21+
At this point you are now logged into the container that you have just built and you can run the samples as per the following "listVMs" example:
22+
23+
```console
24+
root@b5f3a6e06c2f:/work/vsphere-automation-sdk-java# java -ea -cp target/vsphere-samples-6.5.0.jar vmware.samples.vcenter.vm.list.ListVMs --server myvcserver.mydomain.com --username administrator@mydomain.com --password Admin\!23 --skip-server-verification
25+
----------------------------------------
26+
List of VMs
27+
Summary (com.vmware.vcenter.VM.summary) => {
28+
vm = vm-23,
29+
name = VM01,
30+
powerState = POWERED_OFF,
31+
cpuCount = 1,
32+
memorySizeMiB = 1024
33+
}
34+
----------------------------------------
35+
```

0 commit comments

Comments
 (0)