Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
CoreNLP/commonbuildjsp.xml at master · codedcclxxvii/CoreNLP · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
codedcclxxvii
CoreNLP
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
CoreNLP
/
commonbuildjsp.xml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
119 lines (103 loc) · 4.79 KB
master
Breadcrumbs
CoreNLP
/
commonbuildjsp.xml
Copy path
Top
File metadata and controls
Code
Blame
119 lines (103 loc) · 4.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!--
JavaNLP ... include this file to find & compile .jsp servlets
-->
<
project
name
=
"
commonbuildjsp
"
basedir
=
"
../..
"
>
<!--
This classpath is needed for jasper and javac in this target
-->
<
path
id
=
"
webapp.classpath
"
>
<
fileset
dir
=
"
${project.core}/lib/tomcat
"
>
<
include
name
=
"
*.jar
"
/>
</
fileset
>
<
pathelement
location
=
"
${build.path}
"
/>
<
pathelement
location
=
"
${project.core}/lib/commons-logging.jar
"
/>
<
pathelement
location
=
"
${project.core}/lib/javax.servlet.jar
"
/>
</
path
>
<
target
name
=
"
jsp
"
depends
=
"
classpath,compile
"
>
<!--
This target looks for all files that end with .jsp. It then
compiles each directory that those files reside in as a separate
webapp. Since there is currently only one webapp in all of core,
the effort taken to make this as general as possible instead of
hardcoding the path to that webapp was probably not effort well
spent. Still, one day there will be another webapp under core,
and then who will be laughing? I WILL.
November 2011: There are now four different webapps under
core. Yeah. I'm laughing.
-->
<
echo
message
=
"
${ant.project.name}
"
/>
<!--
This tool turns .jsp into .java
-->
<
taskdef
classname
=
"
org.apache.jasper.JspC
"
name
=
"
jasper2
"
>
<
classpath
refid
=
"
webapp.classpath
"
/>
</
taskdef
>
<!--
This tool includes all sorts of useful stuff, like "if" and "for"
-->
<
taskdef
resource
=
"
net/sf/antcontrib/antlib.xml
"
>
<
classpath
>
<
pathelement
location
=
"
${project.core}/lib/ant-contrib-1.0b3.jar
"
/>
</
classpath
>
</
taskdef
>
<!--
This is a list of all the jsp files under this project
-->
<
path
id
=
"
webapp.jspfiles
"
>
<
fileset
dir
=
"
${source.path}
"
>
<
include
name
=
"
**/*.jsp
"
/>
</
fileset
>
</
path
>
<!--
Turn all of the absolute paths into relative paths
-->
<
pathconvert
property
=
"
webapp.relativejspfiles
"
refid
=
"
webapp.jspfiles
"
>
<
map
from
=
"
${source.path}${file.separator}
"
to
=
"
"
/>
</
pathconvert
>
<!--
Make sure the paths are all sorted
-->
<
sortlist
property
=
"
webapp.sortedjspfiles
"
value
=
"
${webapp.relativejspfiles}
"
delimiter
=
"
${path.separator}
"
/>
<!--
We use this property to make sure we don't compile the same
directory twice in a row. This is where it helps to assume
the paths are all sorted.
-->
<
property
name
=
"
webapp.previouspath
"
value
=
"
"
/>
<!--
Now, for each file we found earlier...
-->
<
for
param
=
"
webapp.currentfile
"
list
=
"
${webapp.sortedjspfiles}
"
delimiter
=
"
${path.separator}
"
>
<
sequential
>
<!--
First extract the directory containing the file. This works
on both linux and windows, assuming we don't have any \ or /
in the file name, but that would just be silly. However, it
would still be nice to find a cleaner way of doing this.
-->
<
propertyregex
property
=
"
webapp.path
"
override
=
"
true
"
input
=
"
@{webapp.currentfile}
"
regexp
=
"
(.*)[\\/][^\\/]*.jsp
"
select
=
"
\1
"
/>
<!--
Then build the webapp in that path
-->
<
if
>
<
not
>
<
equals
arg1
=
"
${webapp.path}
"
arg2
=
"
${webapp.previouspath}
"
/>
</
not
>
<
then
>
<
echo
message
=
"
Building .jsp ${webapp.path}
"
/>
<
jasper2
validateXml
=
"
false
"
uriroot
=
"
${source.path}/${webapp.path}
"
webXmlFragment
=
"
${build.path}/${webapp.path}/WEB-INF/generated_web.xml
"
outputDir
=
"
${build.path}/${webapp.path}/WEB-INF/src
"
/>
<
mkdir
dir
=
"
${build.path}/${webapp.path}/WEB-INF/classes
"
/>
<
mkdir
dir
=
"
${build.path}/${webapp.path}/WEB-INF/lib
"
/>
<
javac
destdir
=
"
${build.path}/${webapp.path}/WEB-INF/classes
"
optimize
=
"
${compile.optimize}
"
encoding
=
"
${compile.encoding}
"
debug
=
"
${compile.debug}
"
srcdir
=
"
${build.path}/${webapp.path}/WEB-INF/src
"
includeantruntime
=
"
false
"
excludes
=
"
**/*.smap
"
>
<
classpath
refid
=
"
webapp.classpath
"
/>
<
classpath
refid
=
"
classpath
"
/>
<
classpath
path
=
"
${build.path}
"
/>
<
include
name
=
"
**
"
/>
<
exclude
name
=
"
tags/**
"
/>
</
javac
>
</
then
>
</
if
>
<!--
Save the path we just looked at to ensure we don't
compile it twice in a row. The compiler will actually be
smart enough to not compile twice, but even using it to check
would be time consuming.
-->
<
propertycopy
name
=
"
webapp.previouspath
"
override
=
"
true
"
from
=
"
webapp.path
"
/>
</
sequential
>
</
for
>
</
target
>
</
project
>
You can’t perform that action at this time.