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
08bda47b
Commit
08bda47b
authored
9 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
This has to be the most stupid restriction of play/activator/sbt
parent
63dedf71
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
build.sbt
+0
-11
0 additions, 11 deletions
build.sbt
with
0 additions
and
11 deletions
build.sbt
+
0
−
11
View file @
08bda47b
...
...
@@ -38,7 +38,6 @@ lazy val scriptFile = file(".") / scriptName
clean
:=
{
clean
.
value
if
(
scriptFile
.
exists
&&
scriptFile
.
isFile
)
{
scriptFile
.
delete
}
...
...
@@ -48,32 +47,25 @@ lazy val script = taskKey[Unit]("Generate the leon Bash script")
script
:=
{
val
s
=
streams
.
value
try
{
val
cps
=
(
dependencyClasspath
in
Compile
).
value
val
out
=
(
classDirectory
in
Compile
).
value
val
res
=
(
resourceDirectory
in
Compile
).
value
val
is64
=
System
.
getProperty
(
"sun.arch.data.model"
)
==
"64"
val
f
=
scriptFile
// Paths discovery
if
(
f
.
exists
)
{
s
.
log
.
info
(
"Regenerating '"
+
f
.
getName
+
"' script ("
+(
if
(
is64
)
"64b"
else
"32b"
)+
")..."
)
f
.
delete
}
else
{
s
.
log
.
info
(
"Generating '"
+
f
.
getName
+
"' script ("
+(
if
(
is64
)
"64b"
else
"32b"
)+
")..."
)
}
val
paths
=
(
res
.
getAbsolutePath
+:
out
.
getAbsolutePath
+:
cps
.
map
(
_
.
data
.
absolutePath
)).
mkString
(
":"
)
IO
.
write
(
f
,
s
"""|#!/bin/bash --posix
|
|SCALACLASSPATH="$paths"
|
|java -Xmx2G -Xms512M -classpath $${SCALACLASSPATH} -Dscala.usejavacp=false scala.tools.nsc.MainGenericRunner -classpath $${SCALACLASSPATH} leon.Main $$@ 2>&1 | tee -i last.log
|"""
.
stripMargin
)
f
.
setExecutable
(
true
)
}
catch
{
case
e
:
Throwable
=>
...
...
@@ -83,9 +75,7 @@ script := {
sourceGenerators
in
Compile
<+=
Def
.
task
{
val
libFiles
=
((
baseDirectory
.
value
/
"library"
)
**
"*.scala"
).
getPaths
val
build
=
(
sourceManaged
in
Compile
).
value
/
"leon"
/
"Build.scala"
;
IO
.
write
(
build
,
s
"""|package leon;
|
|object Build {
...
...
@@ -93,7 +83,6 @@ sourceGenerators in Compile <+= Def.task {
| ${libFiles.mkString("\"\"\"", "\"\"\",\n \"\"\"", "\"\"\"")}
| )
|}"""
.
stripMargin
)
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