Skip to content

Commit ef258f8

Browse files
committed
follow the directory structure of webjars
1 parent 3f6b0c3 commit ef258f8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

mkwebjar.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/sh
22

3-
mkdir -p META-INF/resources
4-
cp dist/* META-INF/resources
5-
63
if [ -n "$CI_COMMIT_TAG" ]; then
74
REVISION=$CI_COMMIT_TAG
85
else
@@ -12,6 +9,14 @@ fi
129
MVN_GROUP=de.wwu.scdh.seed
1310
MVN_ARTIFACT=seed-frontend-components-webjar
1411

12+
# internal directory structure of the web jar
13+
INTERNAL_DIR=META-INF/resources/webjars/$MVN_ARTIFACT/$REVISION
14+
15+
mkdir -p $INTERNAL_DIR
16+
cp dist/* $INTERNAL_DIR
17+
18+
19+
1520
WEBJAR=$MVN_ARTIFACT-$REVISION.jar
1621
POM=$MVN_ARTIFACT-$REVISION.pom
1722

0 commit comments

Comments
 (0)