Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
17195f17
Commit
17195f17
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Make generated Build.scala readable
parent
32223a62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
project/Build.scala
+4
-2
4 additions, 2 deletions
project/Build.scala
with
4 additions
and
2 deletions
project/Build.scala
+
4
−
2
View file @
17195f17
...
@@ -48,14 +48,16 @@ object Leon extends Build {
...
@@ -48,14 +48,16 @@ object Leon extends Build {
val
sourceGen
=
{
val
sourceGen
=
{
sourceGenerators
in
Compile
+=
Def
.
task
{
sourceGenerators
in
Compile
+=
Def
.
task
{
val
libFiles
=
((
baseDirectory
.
value
/
"library"
)
**
"*.scala"
).
getPaths
.
mkString
(
"List(\"\"\""
,
"\"\"\", \"\"\""
,
"\"\"\")"
)
val
libFiles
=
((
baseDirectory
.
value
/
"library"
)
**
"*.scala"
).
getPaths
val
build
=
(
sourceManaged
in
Compile
).
value
/
"leon"
/
"Build.scala"
;
val
build
=
(
sourceManaged
in
Compile
).
value
/
"leon"
/
"Build.scala"
;
IO
.
write
(
build
,
s
"""|package leon;
IO
.
write
(
build
,
s
"""|package leon;
|
|
|object Build {
|object Build {
|val libFiles = $libFiles;
| val libFiles = List(
| ${libFiles.mkString("\"\"\"", "\"\"\",\n \"\"\"", "\"\"\"")}
| )
|}"""
.
stripMargin
)
|}"""
.
stripMargin
)
Seq
(
build
)
Seq
(
build
)
...
...
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