Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tooling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
insert epic projlab name here
Tooling
Commits
85cc78fe
Commit
85cc78fe
authored
Feb 27, 2021
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
add stuff
parent
4aa20186
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#6275
failed
Feb 27, 2021
Stage: build
Stage: docker
Changes
5
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+3
-2
3 additions, 2 deletions
Dockerfile
Makefile
+1
-3
1 addition, 3 deletions
Makefile
plab/.gitignore
+2
-1
2 additions, 1 deletion
plab/.gitignore
plab/Makefile
+4
-1
4 additions, 1 deletion
plab/Makefile
plab/javadoc.go
+60
-24
60 additions, 24 deletions
plab/javadoc.go
with
70 additions
and
31 deletions
Dockerfile
+
3
−
2
View file @
85cc78fe
FROM
texlive/texlive
FROM
texlive/texlive
RUN
export
DEBIAN_FRONTEND
=
noninteractive
&&
apt-get update
&&
apt-get
-y
upgrade
&&
apt-get
-y
install
openjdk-11-jdk-headless hunspell-hu hunspell-en-gb hunspell-en-us
RUN
export
DEBIAN_FRONTEND
=
noninteractive
&&
apt-get update
&&
apt-get
-y
upgrade
&&
apt-get
-y
install
openjdk-11-jdk-headless
hunspell
hunspell-hu hunspell-en-gb hunspell-en-us
COPY
tikz-uml.sty /usr/local/texlive/2020/texmf-dist/tex/latex/tikz-uml/tikz-uml.sty
COPY
tikz-uml.sty /usr/local/texlive/2020/texmf-dist/tex/latex/tikz-uml/tikz-uml.sty
COPY
jsonDoclet.jar /root/jsonDoclet.jar
COPY
jsonDoclet.jar /root/jsonDoclet.jar
COPY
plab/out/plab /usr/bin/plab
COPY
./plab/out/plab /usr/bin/plab
ADD
robinbird/build/distributions/robinbird.tar /
RUN
mktexlsr
RUN
mktexlsr
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
3
View file @
85cc78fe
all
:
docker
all
:
docker
docker
:
docker
:
docker build
-t
projlab .
docker build
-t
projlab/projlab .
docker tag projlab projlab/projlab
docker push projlab/projlab
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plab/.gitignore
+
2
−
1
View file @
85cc78fe
plab
plab
test.yml
test.yml
tmp
tmp
out
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plab/Makefile
+
4
−
1
View file @
85cc78fe
build
:
build
:
mkdir
-p
out
mkdir
-p
out
go build
-v
-race
-ldflags
"-linkmode external -extldflags '-static'"
-a
-o
out/plab
go build
-v
-race
-ldflags
"-linkmode external -extldflags '-static'"
-a
-o
out/plab
podman
:
podman run
--rm
-it
-v
$PWD
:/build golang:alpine sh
-c
"apk add make build-base; cd /build; make"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plab/javadoc.go
+
60
−
24
View file @
85cc78fe
...
@@ -11,10 +11,19 @@ import (
...
@@ -11,10 +11,19 @@ import (
"strings"
"strings"
)
)
type
annotated
interface
{
GetAnnot
()
[]
Annot
}
type
InternalType
struct
{
type
InternalType
struct
{
Name
string
Name
string
QualifiedName
string
QualifiedName
string
DocString
string
DocString
string
Annotations
[]
Annot
}
func
(
i
*
InternalType
)
GetAnnot
()
[]
Annot
{
return
i
.
Annotations
}
}
type
Annot
struct
{
type
Annot
struct
{
...
@@ -26,23 +35,20 @@ type Annot struct {
...
@@ -26,23 +35,20 @@ type Annot struct {
}
}
type
Params
struct
{
type
Params
struct
{
Name
string
InternalType
Annotations
[]
Annot
Type
InternalType
Type
InternalType
}
}
type
Method
struct
{
type
Method
struct
{
InternalType
InternalType
Parameters
[]
Params
Parameters
[]
*
Params
ReturnType
InternalType
ReturnType
InternalType
Exceptions
[]
struct
{}
// TODO
Exceptions
[]
struct
{}
// TODO
Annotations
[]
Annot
Modifiers
string
Modifiers
string
}
}
type
Field
struct
{
type
Field
struct
{
InternalType
InternalType
Annotations
[]
Annot
Modifiers
string
Modifiers
string
Type
InternalType
Type
InternalType
}
}
...
@@ -59,7 +65,6 @@ type Class struct {
...
@@ -59,7 +65,6 @@ type Class struct {
realClass
*
Class
realClass
*
Class
}
}
Methods
[]
*
Method
Methods
[]
*
Method
Annotations
[]
Annot
Modifiers
string
Modifiers
string
Fields
[]
*
Field
Fields
[]
*
Field
}
}
...
@@ -144,20 +149,51 @@ func readJson(fname string) (*Class, error) {
...
@@ -144,20 +149,51 @@ func readJson(fname string) (*Class, error) {
return
nil
,
e
return
nil
,
e
}
}
for
i
,
f
:=
range
c
.
Fields
{
replaceFieldType
:=
func
(
field
interface
{},
newType
string
)
{
ann
:=
f
.
Annotations
field
.
(
*
Field
)
.
Type
.
Name
=
newType
}
replaceMethodType
:=
func
(
field
interface
{},
newType
string
)
{
field
.
(
*
Method
)
.
ReturnType
.
Name
=
newType
}
replaceMethodParamType
:=
func
(
field
interface
{},
newType
string
)
{
field
.
(
*
Params
)
.
Type
.
Name
=
newType
}
do
:=
func
(
arr
[]
annotated
,
replace
func
(
field
interface
{},
newType
string
))
{
for
i
,
f
:=
range
arr
{
ann
:=
f
.
GetAnnot
()
for
_
,
a
:=
range
ann
{
for
_
,
a
:=
range
ann
{
if
a
.
TypeName
==
"Docs"
{
if
a
.
TypeName
==
"Docs"
{
for
_
,
e
:=
range
a
.
Elements
{
for
_
,
e
:=
range
a
.
Elements
{
switch
e
.
QualifiedName
{
switch
e
.
QualifiedName
{
case
"projlab.Docs.type"
:
case
"projlab.Docs.type"
:
e
.
Value
=
strings
.
ReplaceAll
(
e
.
Value
,
"
\"
"
,
""
)
e
.
Value
=
strings
.
ReplaceAll
(
e
.
Value
,
"
\"
"
,
""
)
c
.
Fields
[
i
]
.
Type
.
Name
=
e
.
Value
replace
(
arr
[
i
],
e
.
Value
)
}
}
}
}
}
}
}
}
}
tmp
:=
make
([]
annotated
,
0
,
len
(
c
.
Fields
))
for
i
:=
range
tmp
{
tmp
[
i
]
=
&
c
.
Fields
[
i
]
.
InternalType
}
do
(
tmp
,
replaceFieldType
)
tmp
=
make
([]
annotated
,
0
,
len
(
c
.
Methods
))
for
i
:=
range
tmp
{
tmp
[
i
]
=
&
c
.
Methods
[
i
]
.
InternalType
}
do
(
tmp
,
replaceMethodType
)
tmp
=
make
([]
annotated
,
0
)
for
i
:=
range
c
.
Methods
{
for
j
:=
range
c
.
Methods
[
i
]
.
Parameters
{
tmp
=
append
(
tmp
,
c
.
Methods
[
i
]
.
Parameters
[
j
])
}
}
}
}
do
(
tmp
,
replaceMethodParamType
)
return
&
c
,
e
return
&
c
,
e
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment