Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[transformer-dev] Best way to transform groovy script file
  • From: Tim Alkhatib <talkhatib@xxxxxxxxxxx>
  • Date: Fri, 14 Apr 2023 02:59:42 +0000
  • Accept-language: en-AU, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=temenos.com; dmarc=pass action=none header.from=temenos.com; dkim=pass header.d=temenos.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XLr2IWikrO5aXpgxLm8RB3mM6koP/hCiMAgdYFBxZJQ=; b=D5hOoQeF5aCnJl127UgNiLGvcpZZAK9a3N5KPtpOmxPJmZODphOdb+NjvYhvlLjWy8Z2YhdcKwPxajoyGYRlCxYY3wwSl/nZLhmt69xV3lDg/OrwtULw5kUYnY0WCMR+Yc5I7i8ZaVm1WEW1oP1Xf8ZdHRVhHFEjRAUFQW76VvGFEXPOsXngsTf1EAzpZFyI4UrUm1feTvJwO8gthFRQtVkUc1LVoe50K1JhEeJVbhutaoDtRCWx6CCZc8AymIcNlOW1ziNGbG3DihuYSOEunwWVoFJyCjxBL0e4MB71cgOpK90GytgNoaY5nZhLNtrTCzafcsFxLcVH0aIUvMA4Gw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d+9KLr303vDTWJsth+PiKPod7zcGkhrE0hwHN0lUjMSpMuFW5XRiqR51ZJh9EQlSsHmgMnXq/oy6OA7V2QtPadZFpRQnZex+w50YfHBSDhHsxfUwvQQ1u+3aL4T2BydARap+SLpIxyBt3m+gOB/49PMAj8AfCKHKR+DKPDIAXk5SCbyjxqut/PR73KvXOwHNBHYoqNRr4DelRgGYHrSIyJ6W/HJ0g95wT2fCFeLyCMXM/mM2YhWjRntVl+uzbXmGTeiGuRyHCY+RuXMZnk//mSRMjHaARvSzeTLau8GE7OcS8T4u/lNiTspcQm4qyc2wpe1yxps+0A5n5l5V49bOJw==
  • Delivered-to: transformer-dev@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/transformer-dev/>
  • List-help: <mailto:transformer-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/transformer-dev>, <mailto:transformer-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/transformer-dev>, <mailto:transformer-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_aeec8b56-cf92-4f4e-ae60-9935f5ad962f_Enabled=True; MSIP_Label_aeec8b56-cf92-4f4e-ae60-9935f5ad962f_SiteId=d5d2540f-f60a-45ad-86a9-e2e792ee6669; MSIP_Label_aeec8b56-cf92-4f4e-ae60-9935f5ad962f_SetDate=2023-04-14T02:40:43.2442180Z; MSIP_Label_aeec8b56-cf92-4f4e-ae60-9935f5ad962f_ContentBits=0; MSIP_Label_aeec8b56-cf92-4f4e-ae60-9935f5ad962f_Method=Standard
  • Thread-index: AQHZbnqCDXuqV9buxkqRPCVuJzxfeA==
  • Thread-topic: Best way to transform groovy script file

Hi,

 

I would like to ask about the best approach to transfer groovy files. Out product contains several groovy script files and in order for our customers to upgrade to use the latest release of the product, they need to transfer their existing groovy files.

 

I run the transformer on several groovy files inside a folder using 2 custom properties files ( below ) . I test a few files and as far as I can see the packages inside the files are transformed correct name ex. Javax.servlet - > Jakarta.servlet. This under the hood uses TextActionImpl.

 

However, when I compared how TextActionImpl with JavaActionImpl work, I found JavaActionImpl offered more replacements (textUpdate, packagesUpdate, binaryPackagesUpdate, ..) while TextActionImpl offers one replacement (textUpdate). To my understanding groovy script file should be treated like .java files. Is there way to run the transformer on groovy files to guarantee a behaviour like .java files ?

 

 

 

Files

------------------------------------------------------------

jakarta-selection.properties

*.groovy=UTF-8

 

jakarta-text-master.properties

*.groovy=jakarta-direct.properties,jakarta-renames.properties

 

 

Command

------------------------------------------------------------

java -jar org.eclipse.transformer.cli-0.5.0.jar -o  /sdk-project-template /sdk-project-template-output

 

 

 

Thanks,

Tim

 

 


The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. Any use or disclosure of the contents of this e-mail/attachments by a not intended recipient is unauthorized and may be unlawful. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of TEMENOS. We recommend that you check this e-mail and any attachments against viruses. TEMENOS accepts no liability for any damage caused by any malicious code or virus transmitted by this e-mail.

Back to the top