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
4 years ago
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
add stuff
parent
4aa20186
No related branches found
No related tags found
No related merge requests found
Pipeline
#6275
failed
4 years ago
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
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
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
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
3
View file @
85cc78fe
all
:
docker
docker
:
docker build
-t
projlab .
docker tag projlab projlab/projlab
docker push projlab/projlab
\ No newline at end of file
docker build
-t
projlab/projlab .
This diff is collapsed.
Click to expand it.
plab/.gitignore
+
2
−
1
View file @
85cc78fe
plab
test.yml
tmp
out
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plab/Makefile
+
4
−
1
View file @
85cc78fe
build
:
mkdir
-p
out
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 (
"strings"
)
type
annotated
interface
{
GetAnnot
()
[]
Annot
}
type
InternalType
struct
{
Name
string
QualifiedName
string
DocString
string
Annotations
[]
Annot
}
func
(
i
*
InternalType
)
GetAnnot
()
[]
Annot
{
return
i
.
Annotations
}
type
Annot
struct
{
...
...
@@ -26,23 +35,20 @@ type Annot struct {
}
type
Params
struct
{
Name
string
Annotations
[]
Annot
InternalType
Type
InternalType
}
type
Method
struct
{
InternalType
Parameters
[]
Params
Parameters
[]
*
Params
ReturnType
InternalType
Exceptions
[]
struct
{}
// TODO
Annotations
[]
Annot
Modifiers
string
}
type
Field
struct
{
InternalType
Annotations
[]
Annot
Modifiers
string
Type
InternalType
}
...
...
@@ -59,7 +65,6 @@ type Class struct {
realClass
*
Class
}
Methods
[]
*
Method
Annotations
[]
Annot
Modifiers
string
Fields
[]
*
Field
}
...
...
@@ -144,20 +149,51 @@ func readJson(fname string) (*Class, error) {
return
nil
,
e
}
for
i
,
f
:=
range
c
.
Fields
{
ann
:=
f
.
Annotations
replaceFieldType
:=
func
(
field
interface
{},
newType
string
)
{
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
{
if
a
.
TypeName
==
"Docs"
{
for
_
,
e
:=
range
a
.
Elements
{
switch
e
.
QualifiedName
{
case
"projlab.Docs.type"
:
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
}
...
...
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