-
Notifications
You must be signed in to change notification settings - Fork 3.7k
LRCI-5884 #6886
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
base: master
Are you sure you want to change the base?
LRCI-5884 #6886
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -568,6 +568,8 @@ function start_app_server { | |||||
| /bin/bash catalina.sh run & | ||||||
| elif [[ "${APP_SERVER_TYPE}" == "weblogic" ]] | ||||||
| then | ||||||
| ant -f build-test-weblogic.xml setup-weblogic-playwright | ||||||
|
Contributor
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
Suggested change
|
||||||
|
|
||||||
| cd ${app_server_dir}/domains/liferay | ||||||
|
|
||||||
| /bin/bash startWeblogic.sh | ||||||
|
|
@@ -676,19 +678,13 @@ function stop_app_server { | |||||
|
|
||||||
| cd $(get_app_server_dir ${liferay_home})/bin | ||||||
|
|
||||||
| if [[ "${APP_SERVER_TYPE}" == "jboss" || "${APP_SERVER_TYPE}" == "wildfly" ]] | ||||||
| if [[ "${APP_SERVER_TYPE}" == "tomcat" ]] | ||||||
| then | ||||||
| /bin/bash shutdown.sh & | ||||||
| else | ||||||
| cd ${_PORTAL_PROJECT_DIR} | ||||||
|
|
||||||
| ant -f build-test.xml stop-app-server | ||||||
| elif [[ "${APP_SERVER_TYPE}" == "tomcat" ]] | ||||||
| then | ||||||
| /bin/bash shutdown.sh & | ||||||
| elif [[ "${APP_SERVER_TYPE}" == "weblogic" ]] | ||||||
| then | ||||||
| cd ${app_server_dir}/domains/liferay | ||||||
|
|
||||||
| /bin/bash startWeblogic.sh | ||||||
| fi | ||||||
|
|
||||||
| local portal_url=${2} | ||||||
|
|
||||||
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.
The use of multiple consecutive
<antcall>tasks is inefficient because each call creates a new Ant project instance, which can negatively impact build performance. For better performance and maintainability, consider refactoring this to use target dependencies (dependsattribute) to create an execution chain. If modifying the dependency targets is not an option, you could create wrapper targets to define the sequence.