.name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/localization/arecoDeploymentScriptsExamples-locales_en.properties:
--------------------------------------------------------------------------------
1 | type.ArecoHistoricalPriceExample.name=Historical Price Example
2 | type.ArecoHistoricalPriceExample.priceDate.name=Date
3 | type.ArecoHistoricalPriceExample.pricePerUnit.name=Price per Unit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/localization/arecoDeploymentScriptsExamples-locales_fr.properties:
--------------------------------------------------------------------------------
1 | # put localizations of item types into this file
2 | # Note that you can also add special locatizations which
3 | # can be retrieved with the
4 | #
5 | # ...tools.localization.Localization.getLocalizedString(...)
6 | #
7 | # methods.
8 | #
9 | # syntax for type localizations:
10 | #
11 | # type..name=XY
12 | # type...name=XY
13 | # type..description=XY
14 | # type...description=XY
15 | #
16 | # yourcustomlocalekey=value
17 |
18 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/localization/arecoDeploymentScriptsExamples-locales_ja.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/localization/arecoDeploymentScriptsExamples-locales_pt.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/localization/arecoDeploymentScriptsExamples-locales_zh.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140601_TICKET_ADD_CRONJOBS_01/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;testArecoDeploymenScriptMissingJob;testArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;testArecoDeploymenScriptCronJob;testArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140601_TICKET_ADD_CRONJOBS_01/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140601_TICKET_ADD_CRONJOBS_01/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140608_TICKET_CASE_INSENSITIVE_FILE_SORTING_02/A_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;testArecoDeploymenScriptMissingJob;testArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;testArecoDeploymenScriptCronJob;testArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140608_TICKET_CASE_INSENSITIVE_FILE_SORTING_02/b_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140608_TICKET_CASE_INSENSITIVE_FILE_SORTING_02/description.txt:
--------------------------------------------------------------------------------
1 | It shows that the case of the files inside the deployment scripts doesn't matter.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140609_TICKET_USE_SQL_STATEMENT_03/01_insert_historical_prices.impex:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE ArecoHistoricalPriceExample;priceDate[unique=true,dateformat=dd.MM.yyyy];pricePerUnit
2 | ;01.06.2014;1,034
3 | ;02.06.2014;1,032
4 | ;03.06.2014;1,031
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140609_TICKET_USE_SQL_STATEMENT_03/02_remove_all_historical_prices.sql:
--------------------------------------------------------------------------------
1 | delete from {table_prefix}arpriceexample
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140609_TICKET_USE_SQL_STATEMENT_03/description.txt:
--------------------------------------------------------------------------------
1 | Here is an example of a deployment script with an SQL query. You could also update rows.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_01_TICKET_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_01_TICKET_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;devArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;devArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_01_TICKET_DEV_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows a deployment script which only run on the environments DEV and TEST
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_01_TICKET_DEV_CRONJOBS/development.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=DEV,TEST
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_02_TICKET_PRODUCTION_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_02_TICKET_PRODUCTION_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;devArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;devArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_02_TICKET_PRODUCTION_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows a deployment script which only run on PRODUCTION
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_02_TICKET_PRODUCTION_CRONJOBS/productionWithOutIntegration.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=PRODUCTION
2 | runonlyontenants=master
3 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_03_TICKET_INTEGRATION_TESTS_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_03_TICKET_INTEGRATION_TESTS_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;devArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;devArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_03_TICKET_INTEGRATION_TESTS_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows a deployment script which only run on DEV and TEST in the junit tenant
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20140814_03_TICKET_INTEGRATION_TESTS_CRONJOBS/integrationTests.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=DEV,TEST
2 | runonlyontenants=junit
3 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20141006_RUN_CRONJOB_WITH_BEANSHELL/00_create_dummy_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;testArecoDeploymenScriptRunningJob;dummyJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;testArecoDeploymenScriptRunningCronJob;testArecoDeploymenScriptRunningJob;false;en;true
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20141006_RUN_CRONJOB_WITH_BEANSHELL/01_run_cronjob.beanshell:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.core.Registry;
2 | import java.io.PrintStream;
3 | import de.hybris.platform.cronjob.model.CronJobModel;
4 | import de.hybris.platform.servicelayer.cronjob.CronJobService;
5 | import de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException;
6 | import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException;
7 |
8 | final String cronJobCode = "testArecoDeploymenScriptRunningCronJob";
9 |
10 | try {
11 | CronJobService cronJobService = (CronJobService) Registry.getApplicationContext().getBean(CronJobService.class);
12 | final CronJobModel cronJobModel = cronJobService.getCronJob(cronJobCode);
13 |
14 | if (!cronJobService.isPerformable(cronJobModel))
15 | {
16 | System.err.println("The cronjob with code '" + cronJobCode + "' isn't performable. Please check that it is active and "
17 | + "that the clusterID corresponds with this app server.");
18 | return "Error";
19 | }
20 |
21 | cronJobService.performCronJob(cronJobModel, true);
22 | return cronJobService.isSuccessful(cronJobModel) ? "OK" : "Error";
23 | } catch (Exception e) {
24 | System.err.println("There was an error:");
25 | e.printStackTrace(System.err);
26 | return "Error, please see the console of the app server";
27 | }
28 | return "OK";
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20141006_RUN_CRONJOB_WITH_BEANSHELL/02_remove_dummy_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptRunningCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptRunningJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20141006_RUN_CRONJOB_WITH_BEANSHELL/description.txt:
--------------------------------------------------------------------------------
1 | This example shows how to run a cron job using a deployment script.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20150108_RUN_SQL_AND_CHECK_CACHE/03_update_deployment_environment.sql:
--------------------------------------------------------------------------------
1 | update {table_prefix}arenvironmentlp
2 | set p_description = 'Please remove this environment. It was used for an integration test. UPDATED'
3 | where itempk = (select e.pk
4 | from {table_prefix}arenvironment e
5 | where e.p_name = 'DUMMY_ENVIRONMENT'
6 | )
7 | /* There isn't any need to filter the language because there is only one row in junit_arenvironmentlp with the name of the environment. */
8 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20150317_SQL_INSERT/01_insert_number_series.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO {table_prefix}numberseries /* Number Series aren't Hybris items */
2 | (serieskey,seriestype,currentValue)
3 | VALUES( 'EXAMPLE_SQL_INSERT_WITH_DEPLOYMENT_SCRIPT', 1 /* NUMERIC */, 1000)
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/resources/update-deployment-scripts/20181123_REMOVE_DYNAMIC_ATTRIBUTE_HANDLE/01-remove-dynamic-attribute-handle.beanshell:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.core.Registry;
2 | import de.hybris.platform.core.model.type.AttributeDescriptorModel;
3 | import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException;
4 | import de.hybris.platform.servicelayer.model.ModelService;
5 | import de.hybris.platform.servicelayer.type.TypeService;
6 | import org.apache.log4j.Logger;
7 |
8 | TypeService typeService = Registry.getApplicationContext().getBean(TypeService.class);
9 | ModelService modelService = Registry.getApplicationContext().getBean("modelService", ModelService.class);
10 |
11 | AttributeDescriptorModel attributeDescriptor;
12 | try {
13 | attributeDescriptor = typeService.getAttributeDescriptor("Customer", "mainContactAddress");
14 | } catch (UnknownIdentifierException uie) {
15 | Logger.getLogger(this.getClass()).info("The attribute mainContactAddress was already removed.");
16 | return "OK";
17 | }
18 | attributeDescriptor.setAttributeHandler(null);
19 | //We remove the reference to the handler bean
20 | modelService.save(attributeDescriptor);
21 | //Now we remove the attribute.
22 | modelService.remove(attributeDescriptor);
23 | Logger.getLogger(this.getClass()).info("The attribute mainContactAddress was removed.");
24 | return "OK";
25 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/src/org/areco/ecommerce/deploymentscripts/examples/constants/ArecoDeploymentScriptsExamplesConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * [y] hybris Platform
3 | *
4 | * Copyright (c) 2000-2012 hybris AG
5 | * All rights reserved.
6 | *
7 | * This software is the confidential and proprietary information of hybris
8 | * ("Confidential Information"). You shall not disclose such Confidential
9 | * Information and shall use it only in accordance with the terms of the
10 | * license agreement you entered into with hybris.
11 | *
12 | *
13 | */
14 | package org.areco.ecommerce.deploymentscripts.examples.constants;
15 |
16 | /**
17 | * Global class for all ArecoDeploymentScriptsExamples constants. You can add global constants for your extension into this class.
18 | */
19 | public final class ArecoDeploymentScriptsExamplesConstants extends GeneratedArecoDeploymentScriptsExamplesConstants {
20 | public static final String EXTENSIONNAME = "arecoDeploymentScriptsExamples";
21 |
22 | private ArecoDeploymentScriptsExamplesConstants() {
23 | // empty to avoid instantiating this constant class
24 | }
25 |
26 | // implement here constants used by this extension
27 | }
28 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/src/org/areco/ecommerce/deploymentscripts/examples/jobs/DummyJob.java:
--------------------------------------------------------------------------------
1 | package org.areco.ecommerce.deploymentscripts.examples.jobs;
2 |
3 | import de.hybris.platform.cronjob.enums.CronJobResult;
4 | import de.hybris.platform.cronjob.enums.CronJobStatus;
5 | import de.hybris.platform.cronjob.model.CronJobModel;
6 | import de.hybris.platform.servicelayer.cronjob.JobPerformable;
7 | import de.hybris.platform.servicelayer.cronjob.PerformResult;
8 | import org.apache.log4j.Logger;
9 | import org.springframework.context.annotation.Scope;
10 | import org.springframework.stereotype.Component;
11 |
12 | /**
13 | * Empty cronjob used by the example which runs cron jobs.
14 | *
15 | * Created by arobirosa on 31.01.15.
16 | */
17 | @Scope("tenant")
18 | @Component
19 | public class DummyJob implements JobPerformable {
20 | private static final Logger LOG = Logger.getLogger(DummyJob.class);
21 |
22 | @Override public PerformResult perform(final CronJobModel cronJobModel) {
23 | LOG.warn("His is a dummy job used by the example which runs cron jobs.");
24 | return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED);
25 | }
26 |
27 | @Override public boolean isPerformable() {
28 | return true;
29 | }
30 |
31 | @Override public boolean isAbortable() {
32 | return false;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/web/src/org/areco/ecommerce/deploymentscripts/examples/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecoDeploymentScriptsExamples/web/src/org/areco/ecommerce/deploymentscripts/examples/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/web/webroot/WEB-INF/ibm-web-ext.xmi:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsExamples/web/webroot/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | arecoDeploymentScriptsExamples
4 | Welcome to my extension.
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | arecoDeploymentScriptsManager
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.springframework.ide.eclipse.core.springnature
16 | org.eclipse.jdt.core.javanature
17 | net.sourceforge.pmd.eclipse.plugin.pmdNature
18 | com.hybris.hyeclipse.tsv.hybris
19 |
20 |
21 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/.settings/org.springframework.ide.eclipse.beans.core.prefs:
--------------------------------------------------------------------------------
1 | #Fri May 15 12:07:57 CEST 2009
2 | eclipse.preferences.version=1
3 | org.springframework.ide.eclipse.beans.core.ignoreMissingNamespaceHandler=false
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/.springBeans:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | resources/arecoDeploymentScriptsManager-spring.xml
11 | web/webroot/WEB-INF/arecoDeploymentScriptsManager-web-spring.xml
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/.springBeans.new:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | resources/arecoDeploymentScriptsManager-spring.xml
11 | web/webroot/WEB-INF/arecoDeploymentScriptsManager-web-spring.xml
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/extensioninfo.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
24 |
25 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/arecoDeploymentScriptsManager.build.number:
--------------------------------------------------------------------------------
1 | version=1.5.5
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/initial-configuration-de.impex:
--------------------------------------------------------------------------------
1 | UPDATE ScriptExecutionResult;name[unique=true];description[lang=de];
2 | ;SUCCESS;Erfolgreich
3 | ;SUCCESS_MULTIPLE_RUNS;Erfolreich (mehrere Ausführungen)
4 | ;ERROR;Fehler
5 | ;IGNORED_NOT_FOR_THIS_ENVIRONMENT;"Ignoriert: Andere Umgebung"
6 | ;IGNORED_NOT_FOR_THIS_TENANT;"Ignoriert: Anderer Tenant"
7 | ;IGNORED_REMOVED_ON_DISK;"Ignoriert: Entfernt auf dem Festplatte"
8 | ;WILL_BE_EXECUTED;"Wird ausgeführt"
9 |
10 | # These are the out-of-box environments. They may be changed using a deployment script.
11 | UPDATE DeploymentEnvironment;name[unique=true];description[lang=de];
12 | ;DEV;Entwicklungsservers und die Rechner der Entwickler
13 | ;TEST;Von Business Analysts und Kunden benutzten Servers, um das System zu testen
14 | ;INT;Integration und QA Umgebung mit der gleichen Konfiguration wie Produktion.
15 | ;PRODUCTION;Produktion
16 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/localization/arecoDeploymentScriptsManager-locales_en.properties:
--------------------------------------------------------------------------------
1 | type.DeploymentEnvironment.name=Deployment environments
2 | type.DeploymentEnvironment.name.name=Name
3 | type.DeploymentEnvironment.description.name=Description
4 |
5 | type.ScriptExecutionResult.name=Result of the execution
6 | type.ScriptExecutionResult.name.name=Name
7 | type.ScriptExecutionResult.description.name=Description
8 | type.ScriptExecutionResult.canBeRunnedAgain.name=Can be run again?
9 |
10 | type.ScriptExecution.name=Execution of a deployment script
11 | type.ScriptExecution.extensionName.name=Extension
12 | type.ScriptExecution.scriptName.name=Script Name
13 | type.ScriptExecution.result.name=Result
14 | type.ScriptExecution.phase.name=Phase
15 | type.ScriptExecution.fullStacktrace.name=Stacktrace
16 | type.ScriptExecution.firstFailedCronjob.name=First failed cronjob
17 | type.ScriptExecution.firstFailedCronjobLogFile.name=Log file of failed cronjob
18 |
19 | runpendingdeploymentscriptsaction.message.therewasanerror=There was an error while running the deployment scripts.
20 | runpendingdeploymentscriptsaction.message.noerrors=All the deployments scripts were successfully run.
21 | runpendingdeploymentscriptsaction.message.confirmation=Do you want to run the new deployment scripts?
22 |
23 | updatingsystemextensioncontext.loggingformat=The deployment script {0} was executed: {1}.
24 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/no-scripts/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/no-scripts/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/script-requiring-admin/20230216_18_REQUIRES_ADMIN/01-check-if-admin-user.groovy:
--------------------------------------------------------------------------------
1 | return userService.getAdminUser().equals(userService.getCurrentUser()) ? "OK" : "This script must run as admin"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/script-with-error/20141002_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/script-with-error/20141003_PENDING_SCRIPT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | IN_WRONG_SERT Tax;code[unique=true];value;
2 | ;dummyGermanTax;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/script-without-error/20141002_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/ant-scripts-starter-error-handling/script-without-error/20141003_PENDING_SCRIPT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/context-logging/update-deployment-scripts/20150126_TICKET_USE_BEANSHELL_TO_RELOAD_CMS_CONF/01_return_ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK"; //We muss return 'ok'
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/environmentnameswithspaces/20150801_TICKET_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/environmentnameswithspaces/20150801_TICKET_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/environmentnameswithspaces/20150801_TICKET_DEV_CRONJOBS/development.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments= DeV , test
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/essential-data-creator/init-deployment-scripts/20141005_RELOAD_CMS_CONF/01_return_ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK"; //We muss return 'ok'
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/essential-data-creator/update-deployment-scripts/20141004_RELOAD_CMS_CONF/01_return_ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK"; //We muss return 'ok'
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/execution-rights/update-deployment-scripts/20190807_54_EXECUTION_RIGHTS/01-check-current-user.groovy:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.core.Registry
2 | import de.hybris.platform.servicelayer.user.UserService
3 |
4 | def userService = Registry.getApplicationContext().getBean "defaultUserService", UserService.class
5 |
6 | if (userService.getAdminUser().equals(userService.getCurrentUser())) {
7 | return "OK"
8 | } else {
9 | throw new IllegalStateException("The current user is " + userService.getCurrentUser().getUid())
10 | }
11 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/groovy-scrips-with-exceptions/20160325_GROOVY_EXCEPTION/01-throw-exception.groovy:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.core.Registry;
2 | import de.hybris.platform.servicelayer.model.ModelService;
3 |
4 | ModelService modelService=Registry.getApplicationContext().getBean(ModelService.class);
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/groovy-scripts/2015902_TICKET_GROOVY/01-hello-world.groovy:
--------------------------------------------------------------------------------
1 | class HelloWorld {
2 | def name
3 | def greet() { "Hello ${name}" }
4 | }
5 | def helloWorld = new HelloWorld()
6 | helloWorld.name = "World"
7 | helloWorld.greet()
8 | "OK"
9 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/impex-scripts-with-locale/germany/20141003_DUMMY_TAX/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/impex-scripts-with-locale/usa/20141003_DUMMY_TAX/01_insert_dummy_tax_with_american_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyAmericanTax;18.342
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/import-medias/20150315_IMPORT_HEADER_LIBRARY/01-import-header.impex:
--------------------------------------------------------------------------------
1 | $defaultCatalog=Default
2 | $defaultCatalogVersion=Online
3 | $catalogVersion=catalogVersion(catalog(id[default='$defaultCatalog']),version[default='$defaultCatalogVersion'])[unique=true,default='$defaultCatalog:$defaultCatalogVersion']
4 |
5 | INSERT_UPDATE HeaderLibrary;code[unique=true];$catalogVersion;realfilename;encoding(code);mime;fieldSeparator;commentCharacter;linesToSkip;removeOnSuccess;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator][forceWrite=true]
6 | ;test_user_export;;user-export.csv;UTF-8;text/csv;";";#;0;false; jar:org.areco.ecommerce.deploymentscripts.jalo.ArecoDeploymentScriptsManagerManager&/test/import-medias/20150315_IMPORT_HEADER_LIBRARY/user-export.csv
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/import-medias/20150315_IMPORT_HEADER_LIBRARY/user-export.csv:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE User;uid[unique=true]
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/update-deployment-scripts/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/update-deployment-scripts/20150513_PENDING_SCRIPT_WRONG/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | IN_WRONG_SERT Tax;code[unique=true];value;
2 | ;dummyGermanTax;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-corrected-will-executed-test/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-corrected-will-executed-test/20150513_PENDING_SCRIPT_WRONG/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-corrected-will-executed-test/20230220_WILL_BE_EXECUTED/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-removed-error-script-on-disk/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-removed-error-script-on-disk/20230220_WILL_BE_EXECUTED/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-removed-failed-and-will-be-executed-script-on-disk/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-removed-will-be-executed-script-on-disk/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-removed-will-be-executed-script-on-disk/20150513_PENDING_SCRIPT_WRONG/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-will-executed-test/20150512_PENDING_SCRIPT_CORRECT/01_insert_dummy_tax_with_german_locale.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | ;dummyGermanTax2;4,90
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-will-executed-test/20150513_PENDING_SCRIPT_WRONG/01-error.groovy:
--------------------------------------------------------------------------------
1 | return "Error"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/last-failed-script-test/with-will-executed-test/20230220_WILL_BE_EXECUTED/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/long-with-error/20230209_11_LONG_EXECUTION_SCRIPT_ERROR/01-error.groovy:
--------------------------------------------------------------------------------
1 | import org.apache.log4j.Logger
2 |
3 | "This must throw an exception".unknownMethod()
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/long-with-error/20230209_11_LONG_EXECUTION_SCRIPT_ERROR/longExecutedScript.conf:
--------------------------------------------------------------------------------
1 | hasLongExecution=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/long/20230209_11_LONG_EXECUTION_SCRIPT/01-schedule-long-running-task.groovy:
--------------------------------------------------------------------------------
1 | import org.slf4j.LoggerFactory;
2 |
3 | for (int times = 1; times <= 6; times++) {
4 | LoggerFactory.getLogger(this.getClass()).error("The long running script will sleep for 5 seconds")
5 | try {
6 | Thread.sleep(5 * 1000)
7 | } catch (InterruptedException ie) {
8 | LoggerFactory.getLogger(this.getClass()).error("The long running script has interrupted", ie)
9 | }
10 | }
11 | LoggerFactory.getLogger(this.getClass()).error("The long running script has finished")
12 | return "OK"
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/long/20230209_11_LONG_EXECUTION_SCRIPT/description.txt:
--------------------------------------------------------------------------------
1 | This example shows how to configure a deployment script which takes many seconds to execute
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/long/20230209_11_LONG_EXECUTION_SCRIPT/longExecutedScript.conf:
--------------------------------------------------------------------------------
1 | hasLongExecution=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_LONG_EXECUTION_SCRIPT/01-schedule-long-running-task.groovy:
--------------------------------------------------------------------------------
1 | import org.slf4j.LoggerFactory;
2 |
3 | for (int times = 1; times <= 6; times++) {
4 | LoggerFactory.getLogger(this.getClass()).error("The long running script will sleep for 5 seconds")
5 | try {
6 | Thread.sleep(5 * 1000)
7 | } catch (InterruptedException ie) {
8 | LoggerFactory.getLogger(this.getClass()).error("The long running script has interrupted", ie)
9 | }
10 | }
11 | LoggerFactory.getLogger(this.getClass()).error("The long running script has finished")
12 | return "OK"
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_LONG_EXECUTION_SCRIPT/description.txt:
--------------------------------------------------------------------------------
1 | This example shows how to configure a deployment script which takes many seconds to execute
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_LONG_EXECUTION_SCRIPT/longExecutedScript.conf:
--------------------------------------------------------------------------------
1 | hasLongExecution=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_SHORT_EXECUTION_SCRIPT/01-short-execution.groovy:
--------------------------------------------------------------------------------
1 | import org.slf4j.LoggerFactory;
2 | LoggerFactory.getLogger(this.getClass()).error("The short running script has finished")
3 | return "OK"
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_SHORT_EXECUTION_SCRIPT/description.txt:
--------------------------------------------------------------------------------
1 | There is no need to use a configuration file if the deployment script runs fast
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/mixed-scripts/20230209_11_SHORT_EXECUTION_SCRIPT/shortExecutionScript.conf:
--------------------------------------------------------------------------------
1 | hasLongExecution=false
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/short/20230209_11_SHORT_EXECUTION_SCRIPT/01-short-execution.groovy:
--------------------------------------------------------------------------------
1 | import org.slf4j.LoggerFactory
2 |
3 | LoggerFactory.getLogger(this.getClass()).error("The short running script has finished")
4 | return "OK"
5 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/short/20230209_11_SHORT_EXECUTION_SCRIPT/description.txt:
--------------------------------------------------------------------------------
1 | There is no need to use a configuration file if the deployment script runs fast
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/long-execution/short/20230209_11_SHORT_EXECUTION_SCRIPT/shortExecutionScript.conf:
--------------------------------------------------------------------------------
1 | hasLongExecution=false
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/mixedcaseenvironmentnames/20150801_TICKET_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/mixedcaseenvironmentnames/20150801_TICKET_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/mixedcaseenvironmentnames/20150801_TICKET_DEV_CRONJOBS/development.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=Dev,test
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/mixed-scripts/20200410_4_RUN_MULTIPLE_TIMES/description.txt:
--------------------------------------------------------------------------------
1 | This example shows how to configure a deployment script to run multiple times.
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/mixed-scripts/20200410_4_RUN_MULTIPLE_TIMES/ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/mixed-scripts/20200410_4_RUN_MULTIPLE_TIMES/runMultipleTimes.conf:
--------------------------------------------------------------------------------
1 | runmultipletimes=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/mixed-scripts/20200410_4_RUN_ONCE_WITHOUT_CONF/ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times-error-corrected/20200410_4_RUN_MULTIPLE_TIMES_ERROR/01-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times-error-corrected/20200410_4_RUN_MULTIPLE_TIMES_ERROR/runMultipleTimes.conf:
--------------------------------------------------------------------------------
1 | runmultipletimes=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times-error/20200410_4_RUN_MULTIPLE_TIMES_ERROR/error.beanshell:
--------------------------------------------------------------------------------
1 | return "ERROR";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times-error/20200410_4_RUN_MULTIPLE_TIMES_ERROR/runMultipleTimes.conf:
--------------------------------------------------------------------------------
1 | runmultipletimes=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times/20200410_4_RUN_MULTIPLE_TIMES/description.txt:
--------------------------------------------------------------------------------
1 | This example shows how to configure a deployment script to run multiple times.
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times/20200410_4_RUN_MULTIPLE_TIMES/ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/multiple-times/20200410_4_RUN_MULTIPLE_TIMES/runMultipleTimes.conf:
--------------------------------------------------------------------------------
1 | runmultipletimes=true
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/once-with-conf/20200410_4_RUN_ONCE_WITH_CONF/ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/once-with-conf/20200410_4_RUN_ONCE_WITH_CONF/runOnce.conf:
--------------------------------------------------------------------------------
1 | runmultipletimes=false
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-multiple-times/once-without-conf/20200410_4_RUN_ONCE_WITHOUT_CONF/ok.beanshell:
--------------------------------------------------------------------------------
1 | return "OK";
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-order/init-deployment-scripts/20190512_INSERT_TAX/01_insert_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | INSERT Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummyRunOrderTax;21
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/run-order/update-deployment-scripts/20190512_UPDATE_TAX/01_update_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | UPDATE Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummyRunOrderTax;19
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/save-stacktrace/expected-stackstrace.txt:
--------------------------------------------------------------------------------
1 | .*ScriptExecutionException: Script execution has failed \[reason: groovy\.lang\.MissingPropertyException: No such property: unknownMethod for class: java\.lang\.String\].*
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/save-stacktrace/update-deployment-scripts/20150906_PENDING_SCRIPT_WRONG/01_run_with_errors.groovy:
--------------------------------------------------------------------------------
1 | "This script must fail".unknownMethod
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/dev-only/20140814_TICKET_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/dev-only/20140814_TICKET_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/dev-only/20140814_TICKET_DEV_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects and only works on some environments.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/dev-only/20140814_TICKET_DEV_CRONJOBS/development.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=DEV,TEST
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/junit-only/20140814_TICKET_ADD_TEST_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;junitArecoDeploymenScriptMissingJob;junitArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;junitArecoDeploymenScriptCronJob;junitArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/junit-only/20140814_TICKET_ADD_TEST_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;junitArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;junitArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/junit-only/20140814_TICKET_ADD_TEST_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects. And runs only during the integration tests on tenant junit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/junit-only/20140814_TICKET_ADD_TEST_CRONJOBS/unit-test.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=junit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/just-created-environment/20140814_01_ADD_NEW_DEPLOYMENT_ENVIRONMENT/add_qa_webservice_environment.impex:
--------------------------------------------------------------------------------
1 | INSERT DeploymentEnvironment;name[unique=true];description[lang=en];
2 | ;QA_WEBSERVICE;QA for the new webservice;
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/just-created-environment/20140814_02_TICKET_ADD_QA_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/just-created-environment/20140814_02_TICKET_ADD_QA_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;productionArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;productionArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/just-created-environment/20140814_02_TICKET_ADD_QA_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects, and only runs on production.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/just-created-environment/20140814_02_TICKET_ADD_QA_CRONJOBS/qa-webservice.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=QA_WEBSERVICE
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/master-tenant-only/20140814_TICKET_ADD_TEST_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;junitArecoDeploymenScriptMissingJob;junitArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;junitArecoDeploymenScriptCronJob;junitArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/master-tenant-only/20140814_TICKET_ADD_TEST_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;junitArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;junitArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/master-tenant-only/20140814_TICKET_ADD_TEST_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects, and only runs in the master tenant.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/master-tenant-only/20140814_TICKET_ADD_TEST_CRONJOBS/master-tenant.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=master
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-env-and-tenant-master-only/20140814_TICKET_ADD_PROD_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-env-and-tenant-master-only/20140814_TICKET_ADD_PROD_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;productionArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;productionArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-env-and-tenant-master-only/20140814_TICKET_ADD_PROD_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects, and only runs on production.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-env-and-tenant-master-only/20140814_TICKET_ADD_PROD_CRONJOBS/production.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=INTEGRATION,PRODUCTION
2 | runonlyontenants=master
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-only/20140814_TICKET_ADD_PROD_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;devArecoDeploymenScriptMissingJob;devArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;devArecoDeploymenScriptCronJob;devArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-only/20140814_TICKET_ADD_PROD_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;productionArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;productionArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-only/20140814_TICKET_ADD_PROD_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | This example shows impex scripts which insert or delete objects, and only runs on production.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/prod-only/20140814_TICKET_ADD_PROD_CRONJOBS/production.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=INT,PRODUCTION
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/two-configurations/20140814_TICKET_ADD_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/two-configurations/20140814_TICKET_ADD_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/two-configurations/20140814_TICKET_ADD_DEV_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | Wrong deployment script because it has two configuration files. Only one is allowed.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/two-configurations/20140814_TICKET_ADD_DEV_CRONJOBS/development.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=LOCAL,DEV
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/two-configurations/20140814_TICKET_ADD_DEV_CRONJOBS/unit-test.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=junit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-environment/20140814_TICKET_ADD_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-environment/20140814_TICKET_ADD_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-environment/20140814_TICKET_ADD_DEV_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | Not working deployment script: It has a non-existent environment in the configuration.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-environment/20140814_TICKET_ADD_DEV_CRONJOBS/unkown-environment.conf:
--------------------------------------------------------------------------------
1 | runonlyonenvironments=DEVELOPMENT_AND_TESTING
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-tenant/20140814_TICKET_ADD_DEV_CRONJOBS/01_new_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | INSERT ServicelayerJob;code[unique=true];springId
3 | ;productionArecoDeploymenScriptMissingJob;productionArecoDeploymenScriptMissingJob
4 |
5 | INSERT CronJob; code[unique=true];job(code)[forceWrite=true];singleExecutable;sessionLanguage(isocode);active
6 | ;productionArecoDeploymenScriptCronJob;productionArecoDeploymenScriptMissingJob;false;en;false
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-tenant/20140814_TICKET_ADD_DEV_CRONJOBS/02_remove_sample_cronjobs.impex:
--------------------------------------------------------------------------------
1 | # Sample Impex File
2 | REMOVE CronJob; code[unique=true]
3 | ;testArecoDeploymenScriptCronJob;
4 |
5 | REMOVE ServicelayerJob;code[unique=true];
6 | ;testArecoDeploymenScriptMissingJob;
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-tenant/20140814_TICKET_ADD_DEV_CRONJOBS/description.txt:
--------------------------------------------------------------------------------
1 | Not working deployment script: It has a non-existent tenant in the configuration.
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/script-configuration-test/unknown-tenant/20140814_TICKET_ADD_DEV_CRONJOBS/unkown-tenant.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=blackhorsetenant
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/scripts-returning-nok/20190807_54_GROOVY_RETURN_NOK/01-return-nok.groovy:
--------------------------------------------------------------------------------
1 | return "Something else"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/scripts-returning-ok/20190807_54_GROOVY_RETURN_OK/01-return-ok.groovy:
--------------------------------------------------------------------------------
1 | return "OK"
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/ddl/20141004_SQL_SCRIPT_CREATE_TABLE/01_create_dummy_table.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE {TABLE_PREFIX}arenvironment2 (temp INTEGER)
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/ddl/20141004_SQL_SCRIPT_CREATE_TABLE/02_drop_dummy_table.sql:
--------------------------------------------------------------------------------
1 | DROP TABLE {TABLE_PREFIX}arenvironment2
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/delete/20141004_SQL_SCRIPT_DELETE/01_insert_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummySqlScriptTax;5
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/delete/20141004_SQL_SCRIPT_DELETE/02_delete_tax.sql:
--------------------------------------------------------------------------------
1 | delete from {TABLE_PREFIX}taxes where p_code = 'dummySqlScriptTax'
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/insert/20141004_SQL_SCRIPT_INSERT/01_insert_number_series.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO {table_prefix}numberseries /* Number Series aren't Hybris items */
2 | (serieskey,seriestype,currentValue)
3 | VALUES( 'TEST_SQL_SCRIPT_INSERT', 1 /* NUMERIC */, 1000)
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/insert/20141004_SQL_SCRIPT_INSERT/02_check_inserted_number_series.beanshell:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.jalo.numberseries.NumberSeriesManager;
2 | import de.hybris.platform.jalo.numberseries.NumberSeries;
3 | import junit.framework.Assert;
4 |
5 | final String DUMMY_NUMBER_SERIES = "TEST_SQL_SCRIPT_INSERT";
6 |
7 | try {
8 | NumberSeries numberSeries = NumberSeriesManager.getInstance().getNumberSeries(DUMMY_NUMBER_SERIES);
9 | } catch ( de.hybris.platform.jalo.JaloInvalidParameterException e) {
10 | //Inside an integration test we can't see the changes on the database done by the sql script.
11 | return "OK"; //We don't see the number series.
12 | }
13 | Assert.fail("An exception must have been thrown");
14 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/insert/20141004_SQL_SCRIPT_INSERT/03_delete_number_series.sql:
--------------------------------------------------------------------------------
1 | DELETE FROM {table_prefix}numberseries where serieskey = 'TEST_SQL_SCRIPT_INSERT'
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/select/20141004_SQL_SCRIPT_SELECT/01_insert_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummySqlScriptTax;21
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/select/20141004_SQL_SCRIPT_SELECT/02_select_value.sql:
--------------------------------------------------------------------------------
1 | select value from {TABLE_PREFIX}taxes where p_code = 'dummySqlScriptTax'
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/update/20141004_SQL_SCRIPT_UPDATE/01_insert_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummySqlScriptTax;5
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/update/20141004_SQL_SCRIPT_UPDATE/02_update_value.sql:
--------------------------------------------------------------------------------
1 | update {TABLE_PREFIX}taxes
2 | set p_value = 19
3 | where p_code = 'dummySqlScriptTax'
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/update/20141004_SQL_SCRIPT_UPDATE/03_check_updated_tax.beanshell:
--------------------------------------------------------------------------------
1 | import de.hybris.bootstrap.annotations.IntegrationTest;
2 | import de.hybris.platform.core.model.order.price.TaxModel;
3 | import de.hybris.platform.order.daos.TaxDao;
4 | import de.hybris.platform.servicelayer.model.ModelService;
5 | import de.hybris.platform.jalo.order.price.Tax;
6 | import junit.framework.Assert;
7 | import de.hybris.platform.core.Registry;
8 |
9 | import javax.annotation.Resource;
10 | import java.util.List;
11 |
12 | final String DUMMY_TAX_CODE = "dummySqlScriptTax";
13 |
14 | final TaxDao taxDao = Registry.getApplicationContext().getBean(TaxDao.class);
15 | final ModelService modelService = Registry.getApplicationContext().getBean("modelService", ModelService.class);
16 |
17 | List foundTaxes = taxDao.findTaxesByCode(DUMMY_TAX_CODE);
18 | Assert.assertEquals("There must be one dummy tax.", 1, foundTaxes.size());
19 | modelService.refresh(foundTaxes.get(0));
20 | Assert.assertEquals("The changes to the tax percent cannot be seen inside an integration test", 5.0d, foundTaxes.get(0).getValue());
21 | return "OK";
22 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/wrong-query/20141004_SQL_SCRIPT_WRONG_QUERY/01_insert_dummy_tax.impex:
--------------------------------------------------------------------------------
1 | INSERT_UPDATE Tax;code[unique=true];value;
2 | #We use an integer to avoid a failure of the test due to the locale
3 | ;dummySqlScriptTax;21
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/sql-deployment-scripts/wrong-query/20141004_SQL_SCRIPT_WRONG_QUERY/02_insert_tax.sql:
--------------------------------------------------------------------------------
1 | this is not a valid sql query
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/synchronization_of_catalogs/14112018_Ticket49/1-catalogs.impex:
--------------------------------------------------------------------------------
1 | $catalogId=ArecosSyncCataloguesImpexTest
2 |
3 | REMOVE Media[batchmode=true];code[unique=true];catalogVersion(catalog(id), version)[unique=true]
4 | ;testMedia;$catalogId:Online
5 | ;testMedia;$catalogId:Staged
6 |
7 | INSERT_UPDATE Catalog;id[unique=true];name[lang=en]
8 | ;$catalogId;$catalogId
9 |
10 | INSERT_UPDATE CatalogVersion;catalog(id)[unique=true];version[unique=true];active
11 | ;$catalogId;Online;true
12 | ;$catalogId;Staged;false
13 |
14 | insert_update Media;@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator];alttext;catalogVersion(catalog(id),version)[unique=true];code[unique=true];mime;realfilename;
15 | ;jar:/test/synchronization_of_catalogs/14112018_Ticket49/1-catalogs.impex;; $catalogId:Staged; testMedia;text/plain;catalox.impex;
16 |
17 | INSERT_UPDATE SyncItemJob; code [unique=true]; sourceVersion(catalog(id),version); targetVersion (catalog(id),version); rootTypes (code);
18 | ; TestArecoStaged2TestArecoOnline; $catalogId:Staged ; $catalogId:Online; Media;
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/synchronization_of_catalogs/14112018_Ticket49/2-Sync-Start.beanshell:
--------------------------------------------------------------------------------
1 | import de.hybris.platform.core.Registry;
2 | import de.hybris.platform.catalog.synchronization.CatalogSynchronizationService;
3 | import de.hybris.platform.catalog.daos.CatalogVersionDao;
4 | import de.hybris.platform.catalog.model.CatalogVersionModel;
5 |
6 | try {
7 | CatalogSynchronizationService catalogSynchronizationService = (CatalogSynchronizationService) Registry.getApplicationContext().getBean(CatalogSynchronizationService.class);
8 | CatalogVersionDao catalogVersionDao = (CatalogVersionDao) Registry.getApplicationContext().getBean("catalogVersionDao", CatalogVersionDao.class);
9 |
10 | final CatalogVersionModel stageVersion = catalogVersionDao.findCatalogVersions("ArecosSyncCataloguesImpexTest", "Staged").iterator().next();
11 |
12 | final CatalogVersionModel onlineVersion = catalogVersionDao.findCatalogVersions("ArecosSyncCataloguesImpexTest", "Online").iterator().next();
13 |
14 | catalogSynchronizationService.synchronizeFully(stageVersion, onlineVersion);
15 |
16 |
17 | } catch (Exception e) {
18 | System.err.println("There was an error:");
19 | e.printStackTrace(System.err);
20 | return "Error, please see the console of the app server";
21 | }
22 | return "OK";
23 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/synchronization_of_catalogs/14112018_Ticket49/deployment.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=junit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/tenant-conversion-script-configuration/20141004_JUNIT_TENANT/unit-test.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=junit
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/resources/test/tenant-conversion-script-configuration/20141004_MASTER_TENANT/master-tenant.conf:
--------------------------------------------------------------------------------
1 | runonlyontenants=master
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/ant/DeploymentScriptFailureException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2023 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * ...
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.ant;
17 |
18 | /**
19 | * Used to tell the ant process that a script fail and stop it
20 | */
21 | public class DeploymentScriptFailureException extends RuntimeException {
22 |
23 | public DeploymentScriptFailureException(final String message) {
24 | super(message);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/constants/ArecoDeploymentScriptsManagerConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * [y] hybris Platform
3 | *
4 | * Copyright (c) 2000-2012 hybris AG
5 | * All rights reserved.
6 | *
7 | * This software is the confidential and proprietary information of hybris
8 | * ("Confidential Information"). You shall not disclose such Confidential
9 | * Information and shall use it only in accordance with the terms of the
10 | * license agreement you entered into with hybris.
11 | *
12 | *
13 | */
14 | package org.areco.ecommerce.deploymentscripts.constants;
15 |
16 | /**
17 | * Global class for all ArecoDeploymentScriptsManager constants. You can add global constants for your extension into this class.
18 | */
19 | @SuppressWarnings("deprecation")
20 | public final class ArecoDeploymentScriptsManagerConstants extends GeneratedArecoDeploymentScriptsManagerConstants {
21 | public static final String EXTENSIONNAME = "arecoDeploymentScriptsManager";
22 |
23 | public static final String MASTER_TENANT_ID = "master";
24 |
25 | public static final String JUNIT_TENANT_ID = "junit";
26 |
27 | public static final String DEFAULT_UPDATE_SCRIPTS_FOLDER = "update-deployment-scripts";
28 |
29 | public static final String DEFAULT_INIT_SCRIPTS_FOLDER = "init-deployment-scripts";
30 |
31 | private ArecoDeploymentScriptsManagerConstants() {
32 | // empty to avoid instantiating this constant class
33 | }
34 |
35 | // implement here constants used by this extension
36 | }
37 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/ArecoInitialConfigurationImporter.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | /**
19 | * It is responsible for the import of the objects required by the extension. We don't use the ImpexManager automated import of impex scripts because it is
20 | * implemented using the Jalo Layer.
21 | *
22 | * @author Antonio Robirosa
23 | */
24 | public interface ArecoInitialConfigurationImporter {
25 | /**
26 | * It imports the initial objects if they haven't been imported yet
27 | *
28 | * @param context Required
29 | * @return true if there were no errors
30 | */
31 | boolean importConfigurationIfRequired(UpdatingSystemExtensionContext context);
32 | }
33 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentEnvironmentDAO.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | import org.areco.ecommerce.deploymentscripts.model.DeploymentEnvironmentModel;
19 |
20 | import java.util.Set;
21 |
22 | /**
23 | * It manages the instances of the deployment environments.
24 | *
25 | * @author Antonio Robirosa
26 | */
27 | public interface DeploymentEnvironmentDAO {
28 | /**
29 | * Return the environments with the given names.
30 | *
31 | * @param environmentNames Required
32 | * @return Never null.
33 | */
34 | Set loadEnvironments(Set environmentNames);
35 |
36 | /**
37 | * Returns the deployment environment where this server is running
38 | *
39 | * @return Never null
40 | */
41 | DeploymentEnvironmentModel getCurrent();
42 | }
43 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptConfigurationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | /**
19 | * Represents any error related to the configuration of the scripts. It usually doesn't have to be managed.
20 | *
21 | * @author Antonio Robirosa
22 | */
23 | public class DeploymentScriptConfigurationException extends RuntimeException {
24 |
25 | /**
26 | * Constructor with a message and a cause.
27 | */
28 | public DeploymentScriptConfigurationException(final String message, final Throwable cause) {
29 | super(message, cause);
30 | }
31 |
32 | /**
33 | * Constructor with a message.
34 | */
35 | public DeploymentScriptConfigurationException(final String message) {
36 | super(message);
37 | }
38 |
39 | /**
40 | * Constructor with a cause.
41 | */
42 | public DeploymentScriptConfigurationException(final Throwable cause) {
43 | super(cause);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptConfigurationReader.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | import java.io.File;
19 |
20 | /**
21 | * It is responsible for loading the configuration of the deployment script.
22 | *
23 | * @author Antonio Robirosa
24 | */
25 | public interface DeploymentScriptConfigurationReader {
26 | /**
27 | * Reads the folder and returns a configuration for the script.
28 | *
29 | * @param deploymentScriptFolder Required.
30 | * @return Never null
31 | */
32 | DeploymentScriptConfiguration loadConfiguration(File deploymentScriptFolder);
33 | }
34 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptRunner.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | import java.util.List;
19 |
20 | /**
21 | * It executes the deployment scripts.
22 | *
23 | * @author Antonio Robirosa
24 | */
25 | public interface DeploymentScriptRunner {
26 |
27 | /**
28 | * Runs the deployment scripts in the given order.
29 | *
30 | * @param context Required
31 | * @param scriptsToBeRun Required
32 | * @return boolean False is everything was successful. True if there was an error.
33 | */
34 | boolean run(UpdatingSystemExtensionContext context, List scriptsToBeRun);
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | /**
19 | * Describes the contract of the core service.
20 | *
21 | * @author Antonio Robirosa
22 | */
23 | public interface DeploymentScriptService {
24 | /**
25 | * It runs the deployment scripts during an update running system.
26 | *
27 | * @param context Required
28 | * @param runInitScripts Required. Do we run the INIT or the UPDATE scripts?
29 | * @return boolean True if there was an error.
30 | */
31 | boolean runDeploymentScripts(UpdatingSystemExtensionContext context, boolean runInitScripts);
32 |
33 | /**
34 | * Check if the last executed deployment scripts was successful.
35 | *
36 | * @return true if the last deployment script was successful.
37 | */
38 | boolean wasLastScriptSuccessful();
39 | }
40 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptStep.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | /**
19 | * Represent one and only one step of a deployment script.
20 | *
21 | * @author Antonio Robirosa
22 | */
23 | public interface DeploymentScriptStep {
24 | /**
25 | * It returns an unique code use to identify the step.
26 | *
27 | * @return String. Never null.
28 | */
29 | String getId();
30 |
31 | /**
32 | * Does the actual job.
33 | */
34 | ScriptStepResult run();
35 | }
36 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/core/DeploymentScriptStepFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | import java.io.File;
19 |
20 | /**
21 | * It contains the contract definition of the step factories.
22 | *
23 | * @author Antonio Robirosa
24 | */
25 | public interface DeploymentScriptStepFactory {
26 | /**
27 | * It checks if the given file could be used to create a step. If not, it returns null. If yes, it returns the new step.
28 | *
29 | * @param aFile Required
30 | * @return null if the file isn't used by this factory.
31 | */
32 | DeploymentScriptStep create(File aFile);
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/impex/ImpexImportService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.impex;
17 |
18 | import org.areco.ecommerce.deploymentscripts.core.ScriptStepResult;
19 |
20 | import javax.annotation.Nonnull;
21 | import java.io.File;
22 |
23 | /**
24 | * This service is responsible for importing the impex files of the deployment scripts.
25 | *
26 | * @author Antonio Robirosa
27 | */
28 | public interface ImpexImportService {
29 | /**
30 | * Imports the given file and returns an importResult. It results a step result with an exception if there was an error
31 | *
32 | * @param impexFile Required
33 | * @return Never null.
34 | */
35 | @Nonnull
36 | ScriptStepResult importImpexFile(File impexFile);
37 | }
38 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/impex/ImpexImportStepFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.impex;
17 |
18 | import org.areco.ecommerce.deploymentscripts.core.impl.AbstractSingleFileScriptStepFactory;
19 |
20 | import java.io.File;
21 | import java.util.Locale;
22 |
23 | /**
24 | * Creates a new impexDeploymentScriptStep if the given file is a impex script.
25 | *
26 | * @author Antonio Robirosa
27 | */
28 | // The configuration of this bean is in the spring application context.
29 | public abstract class ImpexImportStepFactory extends AbstractSingleFileScriptStepFactory {
30 | @Override
31 | protected boolean canCreateStepWith(final File aFile) {
32 | return aFile.getName().toLowerCase(Locale.getDefault()).endsWith(".impex");
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/scriptinglanguages/ScriptingLanguageExecutionService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.scriptinglanguages;
17 |
18 | import java.io.File;
19 |
20 | /**
21 | * Executes the script files.
22 | *
23 | * @author Antonio Robirosa
24 | */
25 | public interface ScriptingLanguageExecutionService {
26 |
27 | /**
28 | * Runs the given script file. The extension indicates what language it is
29 | *
30 | * @param scriptFile Required
31 | */
32 |
33 | void executeScript(File scriptFile) throws ScriptingLanguageExecutionException;
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/scriptinglanguages/impl/BeanShellScriptStepFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.scriptinglanguages.impl;
17 |
18 | import org.areco.ecommerce.deploymentscripts.core.impl.AbstractSingleFileScriptStepFactory;
19 |
20 | import java.io.File;
21 | import java.util.Locale;
22 |
23 | /**
24 | * It creates steps which run Beanshell scripts.
25 | *
26 | * @author Antonio Robirosa
27 | */
28 | // The configuration of this bean is in the spring application context.
29 | public abstract class BeanShellScriptStepFactory extends AbstractSingleFileScriptStepFactory {
30 | @Override
31 | protected boolean canCreateStepWith(final File aFile) {
32 | return aFile.getName().toLowerCase(Locale.getDefault()).endsWith(".beanshell");
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/scriptinglanguages/impl/GroovyScriptStepFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.scriptinglanguages.impl;
17 |
18 | import org.areco.ecommerce.deploymentscripts.core.impl.AbstractSingleFileScriptStepFactory;
19 |
20 | import java.io.File;
21 | import java.util.Locale;
22 |
23 | /**
24 | * It creates steps which run groovy scripts.
25 | *
26 | * @author Antonio Robirosa
27 | */
28 | // The configuration of this bean is in the spring application context.
29 | public abstract class GroovyScriptStepFactory extends AbstractSingleFileScriptStepFactory {
30 | @Override
31 | protected boolean canCreateStepWith(final File aFile) {
32 | return aFile.getName().toLowerCase(Locale.getDefault()).endsWith(".groovy");
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/sql/SqlScriptService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.sql;
17 |
18 | import java.sql.SQLException;
19 |
20 | /**
21 | * It runs raw SQL code.
22 | *
23 | * @author Antonio Robirosa
24 | */
25 | public interface SqlScriptService {
26 | /**
27 | * Executes a SQL statement containing an UPDATE or DELETE and returns the number of affected rows.
28 | *
29 | * The FlexibleSearchFacade from the HAC doesn't something similar but I can't include the class in the classpath.
30 | *
31 | * @param aStatement Required
32 | * @return Number of affected rows.
33 | * @throws SQLException If there was an error executing the SQL statement
34 | */
35 | int runDeleteOrUpdateStatement(String aStatement) throws SQLException;
36 | }
37 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/src/org/areco/ecommerce/deploymentscripts/sql/SqlScriptStepFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.sql;
17 |
18 | import org.areco.ecommerce.deploymentscripts.core.impl.AbstractSingleFileScriptStepFactory;
19 |
20 | import java.io.File;
21 | import java.util.Locale;
22 |
23 | /**
24 | * Creates a new sql step if the given file is a sql7 script.
25 | *
26 | * @author Antonio Robirosa
27 | */
28 | // The configuration of this bean is in the spring application context.
29 | public abstract class SqlScriptStepFactory extends AbstractSingleFileScriptStepFactory {
30 | @Override
31 | protected boolean canCreateStepWith(final File aFile) {
32 | return aFile.getName().toLowerCase(Locale.getDefault()).endsWith(".sql");
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/testsrc/org/areco/ecommerce/deploymentscripts/ant/DummyMockitoTest.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.ant;
17 |
18 | import de.hybris.bootstrap.annotations.UnitTest;
19 | import org.junit.Assert;
20 | import org.junit.Test;
21 |
22 | /**
23 | * @author Antonio Robirosa
24 | */
25 | @UnitTest
26 | public class DummyMockitoTest {
27 |
28 | @Test
29 | public void emptyMokitoTest() {
30 | Assert.assertTrue("Dummy Condition", true);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/testsrc/org/areco/ecommerce/deploymentscripts/core/ExecutionRightsTest.java:
--------------------------------------------------------------------------------
1 | package org.areco.ecommerce.deploymentscripts.core;
2 |
3 | import de.hybris.bootstrap.annotations.IntegrationTest;
4 | import org.areco.ecommerce.deploymentscripts.ant.AntDeploymentScriptsStarter;
5 | import org.areco.ecommerce.deploymentscripts.testhelper.DeploymentScriptResultAsserter;
6 | import org.junit.Assert;
7 | import org.junit.Before;
8 | import org.junit.Test;
9 |
10 | import javax.annotation.Resource;
11 |
12 | @IntegrationTest
13 | @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert") // The assert statements are inside a private method.
14 | public class ExecutionRightsTest extends AbstractWithConfigurationRestorationTest {
15 |
16 | private static final String RESOURCES_FOLDER = "/resources/test/execution-rights";
17 |
18 | @Resource
19 | private AntDeploymentScriptsStarter antDeploymentScriptsStarter;
20 |
21 | @Resource
22 | private DeploymentScriptService arecoDeploymentScriptService;
23 |
24 | @Resource
25 | private DeploymentScriptResultAsserter deploymentScriptResultAsserter;
26 |
27 | @Before
28 | public void setUpFolder() {
29 | this.getDeploymentConfigurationSetter().setTestFolders(RESOURCES_FOLDER, "update-deployment-scripts");
30 | Assert.assertTrue("The database has failed scripts from other test", arecoDeploymentScriptService.wasLastScriptSuccessful());
31 | }
32 |
33 | @Test
34 | public void testAdminExecutionRights() {
35 | antDeploymentScriptsStarter.runPendingScriptsAndThrowExceptionIfThereWasAnError();
36 | deploymentScriptResultAsserter.assertSuccessfulResult("20190807_54_EXECUTION_RIGHTS");
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/testsrc/org/areco/ecommerce/deploymentscripts/core/ServerEnvironments.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2014 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.core;
17 |
18 | public interface ServerEnvironments {
19 |
20 | String DEVELOPMENT = "DEV";
21 | }
22 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/web/src/org/areco/ecommerce/deploymentscripts/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecoDeploymentScriptsManager/web/src/org/areco/ecommerce/deploymentscripts/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/web/webroot/WEB-INF/ibm-web-ext.xmi:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecoDeploymentScriptsManager/web/webroot/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | areco Deployment Scripts Manager
5 |
6 |
7 | arecoDeploymentScriptsManager
8 | Welcome to my extension.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/.pmd:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | ruleset.xml
5 | false
6 |
7 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | arecodeploymentscriptsbackoffice
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.ui.externaltools.ExternalToolBuilder
10 | auto,full,
11 |
12 |
13 | LaunchConfigHandle
14 | <project>/.externalToolBuilders/HybrisCodeGeneration.launch
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | org.springframework.ide.eclipse.core.springbuilder
25 |
26 |
27 |
28 |
29 | net.sourceforge.pmd.eclipse.plugin.pmdBuilder
30 |
31 |
32 |
33 |
34 |
35 | org.springframework.ide.eclipse.core.springnature
36 | org.eclipse.jdt.core.javanature
37 | net.sourceforge.pmd.eclipse.plugin.pmdNature
38 |
39 |
40 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/.settings/org.springframework.ide.eclipse.beans.core.prefs:
--------------------------------------------------------------------------------
1 | #Fri May 15 12:07:57 CEST 2009
2 | eclipse.preferences.version=1
3 | org.springframework.ide.eclipse.beans.core.ignoreMissingNamespaceHandler=false
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/.springBeans:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | resources/arecodeploymentscriptsbackoffice-spring.xml
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/cng/images/perspective.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/cng/images/perspective.png
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/definition.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 | Run Pending Deployment Scripts
5 | Runs all deployment scripts which weren't run on this database
6 | Antonio Robirosa
7 | 0.1
8 |
9 | org.areco.ecommerce.deploymentscripts.backoffice.actions.RunPendingScriptsAction
10 |
11 | java.lang.String
12 | java.lang.String
13 |
14 | icons/icon_action_run_pending_scripts_default.png
15 | icons/icon_action_run_pending_scripts_hover.png
16 | icons/icon_action_run_pending_scripts_disabled.png
17 |
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_default.png
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_disabled.png
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/icons/icon_action_run_pending_scripts_hover.png
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/labels/labels.properties:
--------------------------------------------------------------------------------
1 | message.therewasanerror=There was an error while running the deployment scripts.
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/labels/labels_de.properties:
--------------------------------------------------------------------------------
1 | # Ä \u00C4 Ae
2 | # ä \u00E4 ae
3 | # Ö \u00D6 Oe
4 | # ö \u00F6 oe
5 | # Ü \u00DC Ue
6 | # ü \u00FC ue
7 | # ß \u00DF ss
8 | #
9 | message.therewasanerror=Es gab einen Fehler während der Ausführung der Scripts.
10 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/labels/labels_en.properties:
--------------------------------------------------------------------------------
1 | message.therewasanerror=There was an error while running the deployment scripts.
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/resources/widgets/actions/runPendingScripts/labels/labels_es.properties:
--------------------------------------------------------------------------------
1 | # Á \u00C1 A con tilde
2 | # á \u00E1 a con tilde
3 | # É \u00C9 E con tilde
4 | # é \u00E9 e con tilde
5 | # Í \u00CD I con tilde
6 | # í \u00ED i con tilde
7 | # Ó \u00D3 O con tilde
8 | # ó \u00F3 o con tilde
9 | # Ú \u00DA U con tilde
10 | # ú \u00FA u con tilde
11 | # ñ \u00F1 ene
12 | # ¿ \u00BF signo de exclamacion invertido
13 | #
14 | message.therewasanerror=Hubo un error ejecutando los deployments scripts.
15 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/backoffice/testsrc/org/areco/ecommerce/deploymentscripts/backoffice/dummy.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/extensioninfo.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/lib/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/lib/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/project.properties:
--------------------------------------------------------------------------------
1 | #
2 | # [y] hybris Platform
3 | #
4 | # Copyright (c) 2000-2015 hybris AG
5 | # All rights reserved.
6 | #
7 | # This software is the confidential and proprietary information of hybris
8 | # ("Confidential Information"). You shall not disclose such Confidential
9 | # Information and shall use it only in accordance with the terms of the
10 | # license agreement you entered into with hybris.
11 | #
12 |
13 | # you can put key/value pairs here.
14 | # Use Config.getParameter(..) to retrieve the values during runtime.
15 |
16 | arecodeploymentscriptsbackoffice.key=value
17 |
18 | # Specifies the location of the spring context file putted automatically to the global platform application context.
19 | arecodeploymentscriptsbackoffice.application-context=arecodeploymentscriptsbackoffice-spring.xml
20 |
21 | log4j2.logger.arecodeploymentscriptsbackoffice.name = org.areco.ecommerce.deploymentscripts.backoffice
22 | log4j2.logger.arecodeploymentscriptsbackoffice.level = INFO
23 | log4j2.logger.arecodeploymentscriptsbackoffice.appenderRef.stdout.ref = STDOUT
24 |
25 |
26 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-labels/labels.properties:
--------------------------------------------------------------------------------
1 | # in this file you has possibility to override widget labels
2 | # syntax:
3 | # .=value
4 | #
5 | # Example:
6 | # yourCustomLabel=value
7 | hmc.arecoDeploymentScriptsManagergroup=Deployment Scripts Manager
8 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-labels/labels_de.properties:
--------------------------------------------------------------------------------
1 | # in this file you has possibility to override widget labels
2 | # syntax:
3 | # .=value
4 | #
5 | # Example:
6 | # yourCustomLabel=value
7 | # Ä \u00C4 Ae
8 | # ä \u00E4 ae
9 | # Ö \u00D6 Oe
10 | # ö \u00F6 oe
11 | # Ü \u00DC Ue
12 | # ü \u00FC ue
13 | # ß \u00DF ss
14 | #
15 | hmc.arecoDeploymentScriptsManagergroup=Deployment Scripts Manager
16 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-labels/labels_en.properties:
--------------------------------------------------------------------------------
1 | # in this file you has possibility to override widget labels
2 | # syntax:
3 | # .=value
4 | #
5 | # Example:
6 | # yourCustomLabel=value
7 | hmc.arecoDeploymentScriptsManagergroup=Deployment Scripts Manager
8 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-labels/labels_es.properties:
--------------------------------------------------------------------------------
1 | # in this file you has possibility to override widget labels
2 | # syntax:
3 | # .=value
4 | #
5 | # Example:
6 | # yourCustomLabel=value
7 | # Á \u00C1 A con tilde
8 | # á \u00E1 a con tilde
9 | # É \u00C9 E con tilde
10 | # é \u00E9 e con tilde
11 | # Í \u00CD I con tilde
12 | # í \u00ED i con tilde
13 | # Ó \u00D3 O con tilde
14 | # ó \u00F3 o con tilde
15 | # Ú \u00DA U con tilde
16 | # ú \u00FA u con tilde
17 | # ñ \u00F1 ene
18 | # ¿ \u00BF signo de exclamacion invertido
19 | #
20 | hmc.arecoDeploymentScriptsManagergroup=Manager de Deployment Scripts
21 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-backoffice-widgets.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
17 |
18 |
19 |
20 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-items.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice.build.number:
--------------------------------------------------------------------------------
1 | version=1.5.5
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice/arecodeploymentscriptsbackoffice-webtestclasses.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/arecodeploymentscriptsbackoffice/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/backoffice/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/backoffice/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/localization/arecodeploymentscriptsbackoffice-locales.properties:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # [y] hybris Platform
4 | #
5 | # Copyright (c) 2000-2015 hybris AG
6 | # All rights reserved.
7 | #
8 | # This software is the confidential and proprietary information of hybris
9 | # ("Confidential Information"). You shall not disclose such Confidential
10 | # Information and shall use it only in accordance with the terms of the
11 | # license agreement you entered into with hybris.
12 | #
13 |
14 | # put localizations of item types into this file
15 | # Note that you can also add special locatizations which
16 | # can be retrieved with the
17 | #
18 | # ...tools.localization.Localization.getLocalizedString(...)
19 | #
20 | # methods.
21 | #
22 | # syntax for type localizations:
23 | #
24 | # type..name=XY
25 | # type...name=XY
26 | # type..description=XY
27 | # type...description=XY
28 | #
29 | # yourcustomlocalekey=value
30 |
31 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/localization/arecodeploymentscriptsbackoffice-locales_de.properties:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # [y] hybris Platform
4 | #
5 | # Copyright (c) 2000-2015 hybris AG
6 | # All rights reserved.
7 | #
8 | # This software is the confidential and proprietary information of hybris
9 | # ("Confidential Information"). You shall not disclose such Confidential
10 | # Information and shall use it only in accordance with the terms of the
11 | # license agreement you entered into with hybris.
12 | #
13 |
14 | # put localizations of item types into this file
15 | # Note that you can also add special locatizations which
16 | # can be retrieved with the
17 | #
18 | # ...tools.localization.Localization.getLocalizedString(...)
19 | #
20 | # methods.
21 | #
22 | # syntax for type localizations:
23 | #
24 | # type..name=XY
25 | # type...name=XY
26 | # type..description=XY
27 | # type...description=XY
28 | #
29 | # yourcustomlocalekey=value
30 |
31 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/localization/arecodeploymentscriptsbackoffice-locales_en.properties:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # [y] hybris Platform
4 | #
5 | # Copyright (c) 2000-2015 hybris AG
6 | # All rights reserved.
7 | #
8 | # This software is the confidential and proprietary information of hybris
9 | # ("Confidential Information"). You shall not disclose such Confidential
10 | # Information and shall use it only in accordance with the terms of the
11 | # license agreement you entered into with hybris.
12 | #
13 |
14 | # put localizations of item types into this file
15 | # Note that you can also add special locatizations which
16 | # can be retrieved with the
17 | #
18 | # ...tools.localization.Localization.getLocalizedString(...)
19 | #
20 | # methods.
21 | #
22 | # syntax for type localizations:
23 | #
24 | # type..name=XY
25 | # type...name=XY
26 | # type..description=XY
27 | # type...description=XY
28 | #
29 | # yourcustomlocalekey=value
30 |
31 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/localization/arecodeploymentscriptsbackoffice-locales_es.properties:
--------------------------------------------------------------------------------
1 |
2 | #
3 | # [y] hybris Platform
4 | #
5 | # Copyright (c) 2000-2015 hybris AG
6 | # All rights reserved.
7 | #
8 | # This software is the confidential and proprietary information of hybris
9 | # ("Confidential Information"). You shall not disclose such Confidential
10 | # Information and shall use it only in accordance with the terms of the
11 | # license agreement you entered into with hybris.
12 | #
13 |
14 | # put localizations of item types into this file
15 | # Note that you can also add special locatizations which
16 | # can be retrieved with the
17 | #
18 | # ...tools.localization.Localization.getLocalizedString(...)
19 | #
20 | # methods.
21 | #
22 | # syntax for type localizations:
23 | #
24 | # type..name=XY
25 | # type...name=XY
26 | # type..description=XY
27 | # type...description=XY
28 | #
29 | # yourcustomlocalekey=value
30 |
31 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/resources/update-deployment-scripts/20230214_remove_ deployment_manager_role/01_remove_deployment_manager_role.impex:
--------------------------------------------------------------------------------
1 | REMOVE BackofficeRole[batchmode=true];UID[unique=true];
2 | ; deploymentmanagerrole;
3 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/src/org/areco/ecommerce/deploymentscripts/backoffice/constants/ArecodeploymentscriptsbackofficeConstants.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2017 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package org.areco.ecommerce.deploymentscripts.backoffice.constants;
17 |
18 | /**
19 | * Global class for all Ybackoffice constants. You can add global constants for your extension into this class.
20 | */
21 | @SuppressWarnings("deprecation")
22 | public final class ArecodeploymentscriptsbackofficeConstants extends GeneratedArecodeploymentscriptsbackofficeConstants {
23 | public static final String EXTENSIONNAME = "arecodeploymentscriptsbackoffice";
24 |
25 | private ArecodeploymentscriptsbackofficeConstants() {
26 | // empty to avoid instantiating this constant class
27 | }
28 |
29 | // implement here constants used by this extension
30 | }
31 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptsbackoffice/testsrc/dummy.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/.pmd:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | .ruleset
5 | false
6 |
7 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | arecodeploymentscriptshmc
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.ui.externaltools.ExternalToolBuilder
10 | auto,full,
11 |
12 |
13 | LaunchConfigHandle
14 | <project>/.externalToolBuilders/HybrisCodeGeneration.launch
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | org.springframework.ide.eclipse.core.springbuilder
25 |
26 |
27 |
28 |
29 | net.sourceforge.pmd.eclipse.plugin.pmdBuilder
30 |
31 |
32 |
33 |
34 |
35 | org.springframework.ide.eclipse.core.springnature
36 | org.eclipse.jdt.core.javanature
37 | net.sourceforge.pmd.eclipse.plugin.pmdNature
38 |
39 |
40 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/.settings/org.springframework.ide.eclipse.beans.core.prefs:
--------------------------------------------------------------------------------
1 | #Fri May 15 12:07:57 CEST 2009
2 | eclipse.preferences.version=1
3 | org.springframework.ide.eclipse.beans.core.ignoreMissingNamespaceHandler=false
4 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/.springBeans:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 |
5 |
6 |
7 |
8 |
9 |
10 | resources/arecodeploymentscriptshmc-spring.xml
11 | web/webroot/WEB-INF/arecodeploymentscriptshmc-web-spring.xml
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/extensioninfo.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/external-dependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | de.hybris.platform
6 | arecodeploymentscriptshmc
7 | 5.0.0.0-SNAPSHOT
8 |
9 | jar
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/jsp/ext/arecoDeploymentScriptsManager/css/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/hmc/jsp/ext/arecoDeploymentScriptsManager/css/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/jsp/ext/arecoDeploymentScriptsManager/images/dummy.txt:
--------------------------------------------------------------------------------
1 | dummy
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/jsp/ext/arecoDeploymentScriptsManager/js/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/hmc/jsp/ext/arecoDeploymentScriptsManager/js/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/resources/org/areco/ecommerce/deploymentscripts/hmc/locales_de.properties:
--------------------------------------------------------------------------------
1 | # Ä \u00C4 Ae
2 | # ä \u00E4 ae
3 | # Ö \u00D6 Oe
4 | # ö \u00F6 oe
5 | # Ü \u00DC Ue
6 | # ü \u00FC ue
7 | # ß \u00DF ss
8 | #
9 | arecodeploymentscriptsmanagergroup=Deployment Scripts Manager
10 | type_tree_scriptexecution=Ausf\u00FChrung der Deployment Scripts
11 | type_tree_deploymentenvironment=Umgebungen
12 | runpendingscriptssearchresultaction.name=Neuen Skripten aus\u00FChren
13 |
14 |
15 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/resources/org/areco/ecommerce/deploymentscripts/hmc/locales_en.properties:
--------------------------------------------------------------------------------
1 | arecodeploymentscriptsmanagergroup=Deployment Scripts Manager
2 | type_tree_scriptexecution=Deployment Scripts Executions
3 | type_tree_deploymentenvironment=Environments
4 | runpendingscriptssearchresultaction.name=Run new scripts
5 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/hmc/resources/org/areco/ecommerce/deploymentscripts/hmc/locales_es.properties:
--------------------------------------------------------------------------------
1 | # Á \u00C1 A con tilde
2 | # á \u00E1 a con tilde
3 | # É \u00C9 E con tilde
4 | # é \u00E9 e con tilde
5 | # Í \u00CD I con tilde
6 | # í \u00ED i con tilde
7 | # Ó \u00D3 O con tilde
8 | # ó \u00F3 o con tilde
9 | # Ú \u00DA U con tilde
10 | # ú \u00FA u con tilde
11 | # ñ \u00F1 ene
12 | # ¿ \u00BF signo de exclamacion invertido
13 | #
14 | arecodeploymentscriptsmanagergroup=Manager de Deployment Scripts
15 | type_tree_scriptexecution=Ejecuciones de Deployment Scripts
16 | type_tree_deploymentenvironment=Grupos de servidores
17 | runpendingscriptssearchresultaction.name=Ejecutar los nuevos scripts
18 |
19 |
20 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/lib/.lastupdate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/lib/.lastupdate
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/project.properties:
--------------------------------------------------------------------------------
1 | # ---------------------------------------------------------------------
2 | # [y] hybris Platform
3 | #
4 | # Copyright (c) 2000-2016 SAP SE
5 | # All rights reserved.
6 | #
7 | # This software is the confidential and proprietary information of SAP
8 | # Hybris ("Confidential Information"). You shall not disclose such
9 | # Confidential Information and shall use it only in accordance with the
10 | # terms of the license agreement you entered into with SAP Hybris.
11 | # ---------------------------------------------------------------------
12 |
13 | # you can put key/value pairs here.
14 | # Use Config.getParameter(..) to retrieve the values during runtime.
15 |
16 | # arecodeploymentscriptshmc.key=value
17 |
18 | # Specifies the location of the spring context file putted automatically to the global platform application context.
19 | arecodeploymentscriptshmc.application-context=arecodeploymentscriptshmc-spring.xml
20 |
21 | log4j2.logger.arecodeploymentscriptshmc.name = org.areco.ecommerce.deploymentscripts.hmc
22 | log4j2.logger.arecodeploymentscriptshmc.level = INFO
23 | log4j2.logger.arecodeploymentscriptshmc.appenderRef.stdout.ref = STDOUT
24 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc-items.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc.build.number:
--------------------------------------------------------------------------------
1 | version=1.5.5
2 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/arecodeploymentscriptshmc-hmctestclasses.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/arecodeploymentscriptshmc-webtestclasses.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/sap-hybris-platform.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/resources/arecodeploymentscriptshmc/sap-hybris-platform.png
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/localization/arecodeploymentscriptshmc-locales_de.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/localization/arecodeploymentscriptshmc-locales_en.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/resources/localization/arecodeploymentscriptshmc-locales_es.properties:
--------------------------------------------------------------------------------
1 |
2 | # put localizations of item types into this file
3 | # Note that you can also add special locatizations which
4 | # can be retrieved with the
5 | #
6 | # ...tools.localization.Localization.getLocalizedString(...)
7 | #
8 | # methods.
9 | #
10 | # syntax for type localizations:
11 | #
12 | # type..name=XY
13 | # type...name=XY
14 | # type..description=XY
15 | # type...description=XY
16 | #
17 | # yourcustomlocalekey=value
18 |
19 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/src/org/areco/ecommerce/deploymentscripts/hmc/constants/ArecodeploymentscriptshmcConstants.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2017 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
10 | * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 | package org.areco.ecommerce.deploymentscripts.hmc.constants;
14 |
15 | /**
16 | * Global class for all Arecodeploymentscriptshmc constants. You can add global constants for your extension into this class.
17 | */
18 | public final class ArecodeploymentscriptshmcConstants extends GeneratedArecodeploymentscriptshmcConstants {
19 | public static final String EXTENSIONNAME = "arecodeploymentscriptshmc";
20 |
21 | private ArecodeploymentscriptshmcConstants() {
22 | // empty to avoid instantiating this constant class
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/src/org/areco/ecommerce/deploymentscripts/hmc/jalo/ArecodeploymentscriptshmcManager.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright 2017 Antonio Robirosa
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
5 | * License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
10 | * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
11 | * governing permissions and limitations under the License.
12 | */
13 | package org.areco.ecommerce.deploymentscripts.hmc.jalo;
14 |
15 | /**
16 | * This is the extension manager of the Arecodeploymentscriptshmc extension.
17 | */
18 | public class ArecodeploymentscriptshmcManager extends GeneratedArecodeploymentscriptshmcManager {
19 |
20 | /*
21 | * Some important tips for development: Do NEVER use the default constructor of manager's or items. => If you want to do
22 | * something whenever the manger is created use the init() or destroy() methods described below Do NEVER use STATIC fields in
23 | * your manager or items! => If you want to cache anything in a "static" way, use an instance variable in your manager, the
24 | * manager is created only once in the lifetime of a "deployment" or tenant.
25 | */
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/testsrc/org/areco/ecommerce/deploymentscripts/hmc/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/testsrc/org/areco/ecommerce/deploymentscripts/hmc/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/src/dummy.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/web/src/dummy.txt
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/404.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 404 Not Found
6 |
7 |
8 |
9 | 404 Not Found
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/405.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 404 Method not allowed
6 |
7 |
8 |
9 | 404 Method not allowed
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/500.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 500 Server Runtime Exception
6 |
7 |
8 |
9 | 404 Server Runtime Exception
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/external-dependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | org.areco.ecommerce.deploymentscripts.hmc
6 | arecodeploymentscriptshmc-web
7 | 6.0.0.0-SNAPSHOT
8 |
9 | jar
10 |
11 |
12 |
13 | displaytag
14 | displaytag
15 | 1.2
16 |
17 |
18 | org.glassfish.web
19 | jstl-impl
20 | 1.2
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/ibm-web-ext.xmi:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/.lastupdate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/.lastupdate
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/displaytag-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/displaytag-1.2.jar
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/jstl-impl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/WEB-INF/lib/jstl-impl-1.2.jar
--------------------------------------------------------------------------------
/hybris/bin/custom/arecodeploymentscriptshmc/web/webroot/static/arecodeploymentscriptshmc-webapp.css:
--------------------------------------------------------------------------------
1 | html {
2 | margin: 0;
3 | padding: 0;
4 | border: 0;
5 | }
6 |
7 | body {
8 | line-height: 1.4;
9 | background: white;
10 | }
11 |
12 | body {
13 | font-size: 75%;
14 | color: #222;
15 | background: #fff;
16 | font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
17 | }
18 |
19 | fieldset {
20 | padding: 0 1.3em 1.3em 1.3em;
21 | margin: 0 0 1.4em 0;
22 | border: 1px solid #ccc;
23 | }
24 |
25 | label {
26 | font-weight: bold;
27 | }
--------------------------------------------------------------------------------
/hybris/config4.8/local.properties.template:
--------------------------------------------------------------------------------
1 | log4j.logger.org.areco.ecommerce.deploymentscripts=ALL
2 | deploymentscripts.environment.current=DEV
3 |
4 |
--------------------------------------------------------------------------------
/hybris/config4.8/localextensions.xml.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/hybris/config5.x/.directory:
--------------------------------------------------------------------------------
1 | [Dolphin]
2 | SortOrder=1
3 | SortRole=date
4 | Timestamp=2017,5,7,9,26,41
5 | Version=3
6 | ViewMode=1
7 |
8 | [Settings]
9 | HiddenFilesShown=true
10 |
--------------------------------------------------------------------------------
/hybris/config5.x/local.properties.template:
--------------------------------------------------------------------------------
1 | log4j.logger.org.areco.ecommerce.deploymentscripts=ALL
2 | deploymentscripts.environment.current=DEV
3 |
4 |
--------------------------------------------------------------------------------
/hybris/config5.x/localextensions.xml.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/hybris/config6.x/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/hybris/config6.x/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | config
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/hybris/config6.x/local.properties.template:
--------------------------------------------------------------------------------
1 | log4j2.logger.arecodeploymentscriptsmanager.level = ALL
2 | deploymentscripts.environment.current=DEV
3 |
4 |
--------------------------------------------------------------------------------
/hybris/config6.x/localextensions.xml.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/hybrisserver.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | cd hybris/bin/platform
3 | ./hybrisserver.sh "$@"
4 | cd ../../..
5 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/1_init_on_oracle/99-local.properties:
--------------------------------------------------------------------------------
1 | # Local oracle xe
2 | db.url=jdbc:oracle:thin:@//localhost:9521/xepdb1
3 | db.driver=oracle.jdbc.driver.OracleDriver
4 | db.username=ARECOMANAGER
5 | db.password=secret3odks
6 | ## custom oracle connection parameters which may increase CLOB performance with thin driver -> uncomment to enable
7 | db.connectionparam.defaultRowPrefetch=50
8 | db.connectionparam.useFetchSizeWithLongColumn=true
9 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/1_init_on_oracle/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3.3"
2 | services:
3 | areco-database:
4 | image: oracle/database:18.4.0-xe
5 | container_name: areco-oracle-xe
6 | environment:
7 | - ORACLE_PWD=password123
8 | # volumes:
9 | # - ${PWD}/../docker_volumes/oracle-xe:/opt/oracle/oradata:delegated
10 | ports:
11 | - 9521:1521
12 | - 9500:5500
13 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/2_init_on_mysql/.env.sample:
--------------------------------------------------------------------------------
1 | DB_IMAGE_NAME=
2 | DB_IMAGE_TAG=
3 | DB_CONTAINER_NAME=
4 | DB_ROOT_PASSWORD=
5 | DB_NAME=
6 | DB_USER_NAME=
7 | DB_USER_PASSWORD=
8 | DB_PORT=
9 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/2_init_on_mysql/99-local.properties:
--------------------------------------------------------------------------------
1 | # Local MySQL database
2 | db.port=3306
3 | db.url=jdbc:mysql://localhost:${db.port}/areco?useConfigs=maxPerformance&\
4 | characterEncoding=utf8&\
5 | sslMode=DISABLED&\
6 | zeroDateTimeBehavior=convertToNull&\
7 | useUnicode=true&\
8 | useFastDateParsing=false&\
9 | allowPublicKeyRetrieval=true
10 | db.driver=com.mysql.cj.jdbc.Driver
11 | db.username=areco
12 | db.password=areco
13 | db.tableprefix=
14 | mysql.optional.tabledefs=CHARSET=utf8 COLLATE=utf8_bin
15 | mysql.tabletype=InnoDB
16 |
17 | standalone.javaoptions=-Xmx2g -Djava.locale.providers=COMPAT,CLDR -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Dfile.encoding=UTF-8 -Dpolyglot.js.nashorn-compat=true -Dpolyglot.engine.WarnInterpreterOnly=false -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
18 | tomcat.javaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
19 | tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
20 |
21 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/2_init_on_mysql/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | areco-database:
3 | image: ${DB_IMAGE_NAME:-mysql}:${DB_IMAGE_VERSION:-8}
4 | command: ["--innodb_flush_log_at_trx_commit=0"]
5 | container_name: ${DB_IMAGE_NAME:-areco-mysql}
6 | environment:
7 | - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD:-root}
8 | - MYSQL_DATABASE=${DB_NAME:-areco}
9 | - MYSQL_USER=${DB_USER_NAME:-areco}
10 | - MYSQL_PASSWORD=${DB_USER_PASSWORD:-areco}
11 | ports:
12 | - ${DB_PORT:-3306}:3306
13 | healthcheck:
14 | test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
15 | interval: 6s
16 | timeout: 6s
17 | retries: 10
18 | start_period: 10s
19 | networks:
20 | - areco
21 | networks:
22 | areco:
23 | name: areco
24 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/2_init_on_mysql/runTest.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # exit when any command fails and trace commands
4 | # set -e -x
5 | # exit when any command fails
6 | set -e
7 |
8 | # Check for docker setup otherwise exit
9 | source ../common/docker_checks.sh
10 |
11 | # Initialize, run tests & QA
12 | source ../common/run_test_base.sh
13 |
14 | run "areco-mysql"
15 |
16 | # EOF
17 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/.env.sample:
--------------------------------------------------------------------------------
1 | DB_IMAGE_NAME=
2 | DB_IMAGE_TAG=
3 | DB_CONTAINER_NAME=
4 | DB_SA_PASSWORD=
5 | DB_PORT=
6 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/99-local.properties:
--------------------------------------------------------------------------------
1 | # Local MSSQL database
2 | db.port=1433
3 | db.url=jdbc:sqlserver://localhost:${db.port};databaseName=areco;responseBuffering=adaptive;loginTimeout=10
4 | db.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
5 | db.username=sa
6 | db.password=ar3c0-sa
7 | db.tableprefix=
8 |
9 |
10 | standalone.javaoptions=-Xmx2g -Djava.locale.providers=COMPAT,CLDR -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -Dfile.encoding=UTF-8 -Dpolyglot.js.nashorn-compat=true -Dpolyglot.engine.WarnInterpreterOnly=false -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
11 | tomcat.javaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
12 | tomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
13 |
14 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | areco-database:
3 | image: ${DB_IMAGE_NAME:-areco-mssql}:${DB_IMAGE_TAG:-2017-latest}
4 | container_name: ${DB_CONTAINER_NAME:-areco-mssql}
5 | environment:
6 | - ACCEPT_EULA=Y
7 | - MSSQL_SA_PASSWORD=${DB_SA_PASSWORD:-ar3c0-sa}
8 | ports:
9 | - ${DB_PORT:-1433}:1433
10 | healthcheck:
11 | test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${MSSQL_SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null
12 | interval: 6s
13 | timeout: 6s
14 | retries: 10
15 | start_period: 10s
16 | networks:
17 | - areco
18 | networks:
19 | areco:
20 | name: areco
21 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/docker/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM mcr.microsoft.com/mssql/server:2017-latest
2 |
3 | # Create a config directory
4 | RUN mkdir -p /usr/config
5 | WORKDIR /usr/config
6 |
7 | # Bundle config source
8 | COPY . /usr/config
9 |
10 | # Grant permissions for to our scripts to be executable
11 | RUN chmod +x /usr/config/entrypoint.sh && chmod +x /usr/config/configure-db.sh
12 |
13 | ENTRYPOINT ["./entrypoint.sh"]
14 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/docker/configure-db.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | timeout=60
4 | interval=5
5 |
6 | # Function to check the database state
7 | is_sql_server_up_and_running() {
8 | /opt/mssql-tools/bin/sqlcmd -U sa -P "$MSSQL_SA_PASSWORD" -Q "SELECT 1" -b -o /dev/null
9 | return $?
10 | }
11 |
12 | setup_areco() {
13 | echo
14 | echo "**************************************************************"
15 | echo "Setting up areco database"
16 | echo "**************************************************************"
17 | echo
18 | /opt/mssql-tools/bin/sqlcmd -U sa -P "$MSSQL_SA_PASSWORD" -d master -i setup.sql
19 | }
20 |
21 | elapsed=0
22 | while [ $elapsed -lt $timeout ]; do
23 | if is_sql_server_up_and_running -eq 0; then
24 | setup_areco
25 | exit 0
26 | fi
27 | echo
28 | echo "**************************************************************"
29 | echo "SQL Server is not online. Checking again in $interval seconds."
30 | echo "**************************************************************"
31 | echo
32 | sleep $interval
33 | elapsed=$((elapsed + interval))
34 | done
35 |
36 | echo
37 | echo "**************************************************************"
38 | echo "Timed out or something went wrong. Exiting."
39 | echo "**************************************************************"
40 | echo
41 | exit 1
42 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/docker/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Start the script to create the DB and user
4 | /usr/config/configure-db.sh &
5 |
6 | # Start SQL Server
7 | /opt/mssql/bin/sqlservr
8 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/docker/setup.sql:
--------------------------------------------------------------------------------
1 | CREATE DATABASE areco;
2 | GO
3 | ALTER DATABASE areco
4 | SET READ_COMMITTED_SNAPSHOT ON;
5 | GO
6 | ALTER DATABASE areco
7 | SET ALLOW_SNAPSHOT_ISOLATION ON;
8 | GO
9 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/3_init_on_mssql/runTest.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # exit when any command fails and trace commands
4 | # set -e -x
5 | # exit when any command fails
6 | set -e
7 |
8 | # Check for docker setup otherwise exit
9 | source ../common/docker_checks.sh
10 |
11 | # Setup MSSQL Container
12 | docker_image="areco-mssql:2017-latest"
13 | if [ -z "$(docker images -q "$docker_image" 2>/dev/null)" ]; then
14 | echo "Build custom MSSQL image"
15 | pushd ./docker
16 | docker build --no-cache -t "$docker_image" .
17 | popd
18 | fi
19 |
20 | # Initialize, run tests & QA
21 | source ../common/run_test_base.sh
22 |
23 | run "areco-mssql"
24 |
25 | # EOF
26 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/common/docker_checks.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Check if docker is installed
4 | if ! hash docker &>/dev/null; then
5 | echo "Install docker first"
6 | exit 1
7 | fi
8 |
9 | # Check if docker compose v2 or docker compose v1 is installed
10 | if ! docker compose version &>/dev/null || ! hash docker-compose &>/dev/null; then
11 | echo "Install docker compose first"
12 | exit 1
13 | fi
14 |
15 | # Check if the docker daemon is running
16 | if ! docker info &>/dev/null; then
17 | echo "Docker is not running"
18 | exit 1
19 | fi
20 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/common/run_test_base.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # exit when any command fails and trace commands
4 | # set -e -x
5 | # exit when any command fails
6 | set -e
7 |
8 | run() {
9 |
10 | db_name=${1}
11 |
12 | areco_current_test_folder=$(dirname "$(realpath "$0")")
13 | areco_hybris_dir=$(realpath "$areco_current_test_folder"/../../hybris)
14 | export COMPOSE_TLS_VERSION=TLSv1_2
15 |
16 | docker_compose_down() {
17 | docker-compose --file "$areco_current_test_folder"/docker-compose.yml down
18 | }
19 |
20 | docker_compose_up() {
21 | docker-compose --file "$areco_current_test_folder"/docker-compose.yml up -d
22 | }
23 |
24 | wait_for_db() {
25 | "$areco_current_test_folder"/../utils/wait-for-container-with-healthcheck.sh --container-name "$db_name"
26 | if [ $? -eq 3 ]; then
27 | docker_compose_down
28 | fi
29 | }
30 |
31 | [[ -f $areco_hybris_dir/bin/platform/hybrisserver.sh ]] || (echo "Please configure ARECO_HYBRIS_DIR with the directory where SAP commerce is located." && exit 1)
32 | cp -v "$areco_current_test_folder"/../dbdriver/*.jar "$areco_hybris_dir"/bin/platform/lib/dbdriver/
33 |
34 | echo "Remove DB Container"
35 | docker_compose_down
36 |
37 | echo "Starting the DB container"
38 | docker_compose_up
39 |
40 | wait_for_db
41 |
42 | echo "DB is up"
43 |
44 | echo "Configuring database connection and other properties"
45 | export HYBRIS_OPT_CONFIG_DIR=$areco_current_test_folder
46 | cd ../..
47 | . ./setantenv.sh
48 | echo "START TESTS AND ANYLYSIS"
49 |
50 | echo "Cleaning SAP Commerce data folder"
51 | rm -rf "$areco_hybris_dir"/data/*
52 |
53 | echo "Run all the tests on master tenant"
54 | ant clean all yunitinit qa
55 |
56 | echo
57 | echo "Remove DB Container"
58 | docker_compose_down
59 |
60 | echo "TESTS AND ANYLYSIS FINISHED"
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/integration_tests_with_ant/dbdriver/mssql-jdbc-11.2.3.jre17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/integration_tests_with_ant/dbdriver/mssql-jdbc-11.2.3.jre17.jar
--------------------------------------------------------------------------------
/integration_tests_with_ant/dbdriver/mysql-connector-j-8.0.32.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/integration_tests_with_ant/dbdriver/mysql-connector-j-8.0.32.jar
--------------------------------------------------------------------------------
/integration_tests_with_ant/dbdriver/ojdbc11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/integration_tests_with_ant/dbdriver/ojdbc11.jar
--------------------------------------------------------------------------------
/integration_tests_with_ant/utils/wait-for-container-with-healthcheck.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 |
5 | # Function to display usage information
6 | usage() {
7 | >&2 cat < [--timeout-in-seconds ]
10 | EOF
11 | exit 1
12 | }
13 |
14 | # Initialize variables
15 | container_name=""
16 | timeout_in_seconds=300
17 |
18 | # Parse options
19 | while (("$#")); do
20 | case "$1" in
21 | --container-name)
22 | container_name="$2"
23 | shift 2
24 | ;;
25 | --timeout-in-seconds)
26 | timeout_in_seconds="$2"
27 | shift 2
28 | ;;
29 | *)
30 | >&2 echo Unsupported option: "$1"
31 | usage
32 | ;;
33 | esac
34 | done
35 |
36 | # Set positional arguments in their proper place
37 | eval set -- "$PARAMS"
38 |
39 | # Check if required options are provided
40 | if [[ -z "$container_name" ]]; then
41 | usage
42 | fi
43 |
44 | get_health_state() {
45 | container_health_state=$(docker inspect -f "{{ .State.Health.Status }}" "${container_name}")
46 | if [ "$container_health_state" = "healthy" ]; then
47 | echo "Container [$container_name] healthy"
48 | return 0
49 | else
50 | echo "Container [$container_name] not yet ready"
51 | return 1
52 | fi
53 | }
54 |
55 | # Set the end time
56 | end=$((SECONDS + timeout_in_seconds))
57 |
58 | until get_health_state; do
59 | sleep 3
60 | # Check if the current time has exceeded the end time
61 | if [ $SECONDS -ge $end ]; then
62 | echo "Could not start container [$container_name], timeout reached."
63 | exit 3
64 | fi
65 | done
66 |
--------------------------------------------------------------------------------
/intellij-idea-settings/CodeStyle.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/intellij-idea-settings/intellij_keymaps_and_live_templates.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/intellij-idea-settings/intellij_keymaps_and_live_templates.jar
--------------------------------------------------------------------------------
/intellij-idea-settings/settings.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/intellij-idea-settings/settings.jar
--------------------------------------------------------------------------------
/qa/build_qa_pmd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
30 |
31 |
32 |
33 |
36 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/qa/spotbugs_excluded_classes.xml:
--------------------------------------------------------------------------------
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 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/screenshots/screetshotBackofficeExecutions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/screenshots/screetshotBackofficeExecutions.png
--------------------------------------------------------------------------------
/screenshots/screetshotBackofficeExecutionsWithError.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/screenshots/screetshotBackofficeExecutionsWithError.png
--------------------------------------------------------------------------------
/screenshots/screetshotBackofficeGroup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/screenshots/screetshotBackofficeGroup.png
--------------------------------------------------------------------------------
/screenshots/screetshotHmcRunPendingScripts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arobirosa/areco-deployment-script-manager/640c34dab7f8b49d92f071c45ea068b4767dca19/screenshots/screetshotHmcRunPendingScripts.png
--------------------------------------------------------------------------------
/setantenv.bat:
--------------------------------------------------------------------------------
1 | cd hybris\bin\platform
2 | setantenv.bat
3 | cd ..\..\..
4 |
--------------------------------------------------------------------------------
/setantenv.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | cd hybris/bin/platform
3 | . ./setantenv.sh
4 | cd ../../..
5 |
--------------------------------------------------------------------------------