-
Notifications
You must be signed in to change notification settings - Fork 506
8301121: RichTextArea Control (Incubator) #1524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f3b02a2
4c472b7
70481ee
1cc7743
3e55db8
a4d7d70
780a385
09a1637
c2d449f
e035c16
d813338
bc1615c
abb4e8d
1d511bf
9a98453
b68b375
1aafab2
6e66a0d
0fdd998
ce1b695
42f84f5
198206f
b22f476
4cd177f
4abd8c4
aaa361c
de3947b
5482813
186db01
b8b5efe
c0815f0
1c6c1a5
845ead7
9a8bd55
3d0c13f
212d2b4
9325789
e00399b
b103e5e
eae50cc
faabd11
905c66b
968989a
d92c428
29ae5ff
fa25011
6f0755f
48086f7
189c663
3946307
728ca11
a51ae15
78e5d97
7e142dd
05f533d
8a52cf7
b387615
7585ae3
5e2a68f
ff3f5af
6a02a75
bf41505
52a7dba
0dead10
018bc86
e45be7b
1cd54b1
e453f61
b601327
6469a21
e04847e
4b27b89
5972f7d
22fce6a
7ed4e6e
b117296
84cb038
8f10e0f
7b66cda
db42896
5ad1eeb
2915437
e5814b2
b49e9d6
df00c2b
256077e
71a8017
d43acd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2795,6 +2795,181 @@ project(":controls") { | |
addValidateSourceSets(project, sourceSets) | ||
} | ||
|
||
project(":incubator.input") { | ||
project.ext.buildModule = true | ||
project.ext.includeSources = true | ||
project.ext.moduleRuntime = true | ||
project.ext.moduleName = "jfx.incubator.input" | ||
project.ext.incubating = true | ||
|
||
sourceSets { | ||
main | ||
shims { | ||
java { | ||
compileClasspath += sourceSets.main.output | ||
runtimeClasspath += sourceSets.main.output | ||
} | ||
} | ||
test { | ||
java { | ||
compileClasspath += sourceSets.shims.output | ||
runtimeClasspath += sourceSets.shims.output | ||
} | ||
} | ||
} | ||
|
||
project.ext.moduleSourcePath = defaultModuleSourcePath | ||
project.ext.moduleSourcePathShim = defaultModuleSourcePathShim | ||
|
||
commonModuleSetup(project, [ | ||
'base', | ||
'graphics', | ||
'controls', | ||
'incubator.input' | ||
]) | ||
|
||
dependencies { | ||
testImplementation project(":base").sourceSets.test.output | ||
testImplementation project(":graphics").sourceSets.test.output | ||
testImplementation project(":controls").sourceSets.test.output | ||
implementation project(':base') | ||
implementation project(':graphics') | ||
implementation project(':controls') | ||
} | ||
|
||
test { | ||
jvmArgs "-Djavafx.toolkit=test.com.sun.javafx.pgstub.StubToolkit" | ||
} | ||
|
||
def modulePath = "${project.sourceSets.main.java.getDestinationDirectory().get().getAsFile()}" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.controls/build/classes/java/main" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.graphics/build/classes/java/main" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.base/build/classes/java/main" | ||
|
||
// FIXME: KCR | ||
// processResources { | ||
// doLast { | ||
// def cssFiles = fileTree(dir: "$moduleDir/com/sun/javafx/scene/control/skin") | ||
// cssFiles.include "**/*.css" | ||
// cssFiles.each { css -> | ||
// logger.info("converting CSS to BSS ${css}"); | ||
// | ||
// javaexec { | ||
// executable = JAVA | ||
// workingDir = project.projectDir | ||
// jvmArgs += patchModuleArgs | ||
// jvmArgs += "--module-path=$modulePath" | ||
// jvmArgs += "--add-modules=javafx.graphics" | ||
// mainClass = "com.sun.javafx.css.parser.Css2Bin" | ||
// args css | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// def copyShimBssTask = project.task("copyShimBss", type: Copy, | ||
// dependsOn: [project.tasks.getByName("compileJava"), | ||
// project.tasks.getByName("processResources")]) { | ||
// from project.moduleDir | ||
// into project.moduleShimsDir | ||
// include "**/*.bss" | ||
// } | ||
// processShimsResources.dependsOn(copyShimBssTask) | ||
|
||
addMavenPublication(project, [ 'graphics' , 'controls']) | ||
|
||
addValidateSourceSets(project, sourceSets) | ||
} | ||
|
||
project(":incubator.richtext") { | ||
project.ext.buildModule = true | ||
project.ext.includeSources = true | ||
project.ext.moduleRuntime = true | ||
project.ext.moduleName = "jfx.incubator.richtext" | ||
project.ext.incubating = true | ||
|
||
sourceSets { | ||
main | ||
shims { | ||
java { | ||
compileClasspath += sourceSets.main.output | ||
runtimeClasspath += sourceSets.main.output | ||
} | ||
} | ||
test { | ||
java { | ||
compileClasspath += sourceSets.shims.output | ||
runtimeClasspath += sourceSets.shims.output | ||
} | ||
} | ||
} | ||
|
||
project.ext.moduleSourcePath = defaultModuleSourcePath | ||
project.ext.moduleSourcePathShim = defaultModuleSourcePathShim | ||
|
||
commonModuleSetup(project, [ | ||
'base', | ||
'graphics', | ||
'controls', | ||
'incubator.input', | ||
'incubator.richtext' | ||
]) | ||
|
||
dependencies { | ||
testImplementation project(":base").sourceSets.test.output | ||
testImplementation project(":graphics").sourceSets.test.output | ||
testImplementation project(":controls").sourceSets.test.output | ||
testImplementation project(":incubator.input").sourceSets.test.output | ||
implementation project(':base') | ||
implementation project(':graphics') | ||
implementation project(':controls') | ||
implementation project(':incubator.input') | ||
} | ||
|
||
test { | ||
jvmArgs "-Djavafx.toolkit=test.com.sun.javafx.pgstub.StubToolkit" | ||
} | ||
|
||
def modulePath = "${project.sourceSets.main.java.getDestinationDirectory().get().getAsFile()}" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.controls/build/classes/java/main" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.graphics/build/classes/java/main" | ||
modulePath += File.pathSeparator + "${rootProject.projectDir}/modules/javafx.base/build/classes/java/main" | ||
|
||
// FIXME: KCR | ||
// processResources { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend deleting this commented-out block unless you plan to deliver resources as part of the |
||
// doLast { | ||
// def cssFiles = fileTree(dir: "$moduleDir/com/sun/javafx/scene/control/skin") | ||
// cssFiles.include "**/*.css" | ||
// cssFiles.each { css -> | ||
// logger.info("converting CSS to BSS ${css}"); | ||
// | ||
// javaexec { | ||
// executable = JAVA | ||
// workingDir = project.projectDir | ||
// jvmArgs += patchModuleArgs | ||
// jvmArgs += "--module-path=$modulePath" | ||
// jvmArgs += "--add-modules=javafx.graphics" | ||
// mainClass = "com.sun.javafx.css.parser.Css2Bin" | ||
// args css | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// def copyShimBssTask = project.task("copyShimBss", type: Copy, | ||
// dependsOn: [project.tasks.getByName("compileJava"), | ||
// project.tasks.getByName("processResources")]) { | ||
// from project.moduleDir | ||
// into project.moduleShimsDir | ||
// include "**/*.bss" | ||
// } | ||
// processShimsResources.dependsOn(copyShimBssTask) | ||
|
||
addMavenPublication(project, [ 'graphics' , 'controls']) | ||
|
||
addValidateSourceSets(project, sourceSets) | ||
} | ||
|
||
project(":swing") { | ||
|
||
// We need to skip setting compiler.options.release for this module, | ||
|
@@ -3911,7 +4086,17 @@ project(":systemTests") { | |
testImplementation project(":swing").sourceSets.test.output | ||
} | ||
|
||
def dependentProjects = [ 'base', 'graphics', 'controls', 'media', 'web', 'swing', 'fxml' ] | ||
def dependentProjects = [ | ||
'base', | ||
'graphics', | ||
'controls', | ||
'incubator.input', | ||
'incubator.richtext', | ||
'media', | ||
'web', | ||
'swing', | ||
'fxml' | ||
] | ||
commonModuleSetup(project, dependentProjects) | ||
|
||
File testJavaPolicyFile = new File(rootProject.buildDir, TESTJAVAPOLICYFILE); | ||
|
@@ -4351,7 +4536,10 @@ task javadoc(type: Javadoc, dependsOn: createMSPfile) { | |
description = "Generates the JavaDoc for all the public API" | ||
executable = JAVADOC | ||
def projectsToDocument = [ | ||
project(":base"), project(":graphics"), project(":controls"), project(":media"), | ||
project(":base"), project(":graphics"), project(":controls"), | ||
project(":incubator.input"), | ||
project(":incubator.richtext"), | ||
project(":media"), | ||
project(":swing"), /*project(":swt"),*/ project(":fxml"), project(":web")] | ||
source(projectsToDocument.collect({ | ||
[it.sourceSets.main.java] | ||
|
@@ -5675,6 +5863,7 @@ compileTargets { t -> | |
def modnames = [] | ||
moduleProjList.each { project -> | ||
if (project.hasProperty("moduleName") && project.buildModule) { | ||
def incubating = project.hasProperty("incubating") && project.ext.incubating | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After the merge of master, you can remove this (it is unused). I removed it from the PR #1616 (Support JavaFX incubator modules). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I plan to update (merge) the build script once #1616 is integrated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still an issue after the merge, and needs to now be removed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missed this spot, thanks! |
||
modnames << project.ext.moduleName | ||
File dir; | ||
if (project.sourceSets.hasProperty('shims')) { | ||
|
@@ -5686,16 +5875,18 @@ compileTargets { t -> | |
def dstModuleDir = cygpath(dir.path) | ||
modpath << "${dstModuleDir}" | ||
|
||
String themod = dir.toURI() | ||
testJavaPolicyFile << "grant codeBase \"${themod}\" {\n" + | ||
" permission java.security.AllPermission;\n" + | ||
"};\n" | ||
|
||
dir = new File(rootProject.buildDir, "sdk/lib/${project.ext.moduleName}.jar") | ||
themod = dir.toURI() | ||
runJavaPolicyFile << "grant codeBase \"${themod}\" {\n" + | ||
" permission java.security.AllPermission;\n" + | ||
"};\n" | ||
if (!incubating) { | ||
String themod = dir.toURI() | ||
testJavaPolicyFile << "grant codeBase \"${themod}\" {\n" + | ||
" permission java.security.AllPermission;\n" + | ||
"};\n" | ||
|
||
dir = new File(rootProject.buildDir, "sdk/lib/${project.ext.moduleName}.jar") | ||
themod = dir.toURI() | ||
runJavaPolicyFile << "grant codeBase \"${themod}\" {\n" + | ||
" permission java.security.AllPermission;\n" + | ||
"};\n" | ||
} | ||
} | ||
} | ||
|
||
|
@@ -5741,6 +5932,8 @@ compileTargets { t -> | |
def jmodName = "${moduleName}.jmod" | ||
def jmodFile = "${jmodsDir}/${jmodName}" | ||
|
||
def incubating = project.hasProperty("incubating") && project.ext.incubating | ||
|
||
// On Windows, copy the native libraries in the jmod image | ||
// to a "javafx" subdir to avoid conflicting with the Microsoft | ||
// DLLs that are shipped with the JDK | ||
|
@@ -5782,6 +5975,10 @@ compileTargets { t -> | |
if (sourceDateEpoch != null) { | ||
args("--date", extendedTimestamp) | ||
} | ||
if (incubating) { | ||
args("--do-not-resolve-by-default") | ||
args("--warn-if-resolved=incubating") | ||
} | ||
args(jmodFile) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend deleting this commented-out block unless you plan to deliver resources as part of the
jfx.incubator.input
module.