Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
Scott
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Sun
Scott
Commits
cf08b85d
Commit
cf08b85d
authored
Jun 11, 2020
by
Scott Sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.topibd.net/scott.sun/scott
parents
56eabba9
9c93db4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
scott_test.js
test/scott_test.js
+11
-20
No files found.
test/scott_test.js
View file @
cf08b85d
...
@@ -57,14 +57,17 @@ if ($.hasOwnProperty('script_parameter')){
...
@@ -57,14 +57,17 @@ if ($.hasOwnProperty('script_parameter')){
try
{
try
{
var
job
=
Job
.
toLowerCase
()
var
job
=
Job
.
toLowerCase
()
console
.
log
(
"job---------:"
+
job
);
var
matrix
=
GEN
.
getMatrix
({
job
:
job
})
console
.
log
(
"GEN_TYPE---------:"
+
GEN
.
GEN_TYPE
);
var
sm
=
Object
.
keys
(
matrix
).
filter
(
function
(
v
){
console
.
log
(
"GENESIS_TMP---------:"
+
GEN
.
GENESIS_TMP
);
var
item
=
matrix
[
v
]
console
.
log
(
"GENESIS_DIR---------:"
+
GEN
.
GENESIS_DIR
);
return
item
.
context
==
"board"
&&
item
.
layer_type
==
"solder_mask"
console
.
log
(
"GENESIS_EDIR---------:"
+
GEN
.
GENESIS_EDIR
);
})
var
jobpath
=
GEN
.
getJobPath
({
job
:
job
})
GEN
.
openStep
({
job
:
job
,
name
:
"cad"
})
console
.
log
(
"_____jobpath______:"
+
_
.
toString
(
jobpath
));
sm
.
forEach
(
function
(
layer
){
console
.
log
(
"______path:"
+
GEN
.
dbutil
(
'path jobs '
+
jobname
));
GEN
.
PAUSE
(
layer
)
var
info
=
GEN
.
copperArea
({
layer
:
layer
})
GEN
.
PAUSE
(
_
.
toString
(
info
))
})
QDfm
.
updateRow
({
QDfm
.
updateRow
({
table
:
"pdm_aimdfm_task"
,
table
:
"pdm_aimdfm_task"
,
...
@@ -95,15 +98,3 @@ catch (e) {
...
@@ -95,15 +98,3 @@ catch (e) {
}
}
function
mkPath
(
path
,
list
)
{
console
.
log
(
"--path:"
+
path
);
if
(
list
.
length
){
var
newPath
=
path
+
'/'
+
list
.
shift
()
if
(
!
fs
.
dirExists
(
newPath
)){
fs
.
mkdir
(
newPath
)
console
.
log
(
"--mkdir:"
+
newPath
);
}
return
mkPath
(
newPath
,
list
)
}
else
{
return
path
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment