327
Views
5
Comments
Solved
Is there an easier way to upload and deploy resources?

Hi all


In the project I'm working on, I'm required to install some extra plugins in the CKEditor component. Some plugins have lots of files and folders. Currently what I'm doing is going into each folder of the component, select all non-folder files, drag and drop to the resources folder in Service Studio, and then set their target directory in a bulk. This ends up taking a lot of time, specially considering that most plugins depend on other plugins that also need to be installed.

Is there an easier/faster way to do this? Maybe I'm missing something.

Despite CKEditor plugins, I think it would be really helpful to have a more powerful UI in the resources, namely being able to drag and drop folders from the filesystem and have them automatically assigned with the correct target directory. 




Regards,

Manuel

2026-03-09 12-26-51
Fábio Fantato
 
MVP
Solution

There is a project in the github in this link to help you to do that: GitHub - achinita/ImportResources: A small tool that allows to import full folders of resources into OML files, using ServiceStudio.exe. 

It is old but it still works. You only need to select the current dll from service studio folder,  your oml and the files you want to import. It is very useful.


Regards

Fabio


   

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Nice l, will try it out!

2023-01-07 12-51-11
Manuel Rodrigues

Thanks Fabio!

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Manual,

I did it once too, had the same concerns as you as how much manual work it is, but could not find an easier way.

Regards,

Daniel


2026-03-09 12-26-51
Fábio Fantato
 
MVP
Solution

There is a project in the github in this link to help you to do that: GitHub - achinita/ImportResources: A small tool that allows to import full folders of resources into OML files, using ServiceStudio.exe. 

It is old but it still works. You only need to select the current dll from service studio folder,  your oml and the files you want to import. It is very useful.


Regards

Fabio


   

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Nice l, will try it out!

2023-01-07 12-51-11
Manuel Rodrigues

Thanks Fabio!

2016-04-13 12-55-31
Peter Möllers

I  am using a version in 2 automated steps.

1) Create new (or reuse an existing - make sure to clear resources first) module. Export as OML-file to local drive.

2) Expand the ckeditor zip-file to your local drive. Make sure to remove the sample-subdirectory, otherwise it will end up in your module.

3) Edit (adjust paths) and run following powershell script:

$pathToCKEditor = "C:\Users\ABC123\ckeditor_4.22.1_5425ce439c72\ckeditor"

$pathToServiceStudio = """c:\program files\OutSystems\Service Studio 11\Service Studio\ServiceStudio.exe"""

$omlFilePath = """C:\Users\ABC123\ckeditor4221.oml"""

$data = Get-ChildItem $pathToCKEditor -recurse -attribute !Directory

Set-Location $pathToCKEditor

$output = foreach ($file in $data)

{

    $newPath = (Resolve-Path -Relative $file.Directory).replace("..\ckeditor", "").replace(".\", "")

    $fullFileName = $file.FullName

    $outputText = $pathToServiceStudio + " -importResource " + $omlFilePath +  " """ + $fullFileName + """ " + $newPath

    Write-Output $outputText

}

$output | Out-File -Encoding ASCII -FilePath "C:\Users\ABC123\ckeditorimportcommand.cmd"

4) Execute the generated .CMD file. Note: this can take a while depending on the plugins that you've selected in your ckeditor zip-file.

5) Finally import the updated OML-file in service studio.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.