Questions tagged [externalizing]

22 questions
4
votes
5 answers

'Un'-externalize strings from Eclipse or Intellij

I have a bunch of strings in a properties file which i want to 'un-externalize', ie inline into my code. I see that both Eclipse and Intellij have great support to 'externalize' strings from within code, however do any of them support inlining…
pdeva
  • 43,605
  • 46
  • 133
  • 171
3
votes
4 answers

Best practices for externalizing strings in PHP

I've been surprised by how little I've found on externalizing strings in PHP. Does everyone use gettext, or is there some other framework or tool that I'm not aware of?
BenV
  • 12,052
  • 13
  • 64
  • 92
2
votes
1 answer

How do I separate out constants for JavaScript?

I have a web-page created with JavaServer Pages (JSP) and with significant JavaScript (JS) that makes calls to other servers. The URL that the page talks to depends on what server (read: environment) I deploy to. I have two possible strategies (at…
2
votes
1 answer

Externalizing values inside application.properties (ex. server.port, spring.datasource.url, and etc.)

server.port = ? spring.datasource.url = ? spring.datasource.username = ? spring.datasource.password = ? I want to externalize all the "?" values outside the application.properties, and have them in a text file or something. I already have a…
2
votes
1 answer

How to externalize strings to multiple files in Eclipse

I have run Externalize Strings in Eclipse that generated a messages.properties. That was translated to some other languages and the new files were created like messages_de.properties etc. Now after adding some new strings how could I externalize…
Atos
  • 717
  • 2
  • 8
  • 13
2
votes
5 answers

Classic asp include

I am trying to separate some asp logic out into a separate page. For now, I am trying to call a simple function. Here is the simple index page that I am using Calling a webservice from classic ASP <% If…
Damien
  • 4,081
  • 12
  • 75
  • 126
1
vote
5 answers

Spring boot external properties file in "current directory" is ignored

from the manual: 24.3 Application property files SpringApplication will load properties from application.properties files in the following locations and add them to the Spring Environment: A /config subdirectory of the current directory. The…
clickcell
  • 439
  • 3
  • 6
  • 20
1
vote
0 answers

Externalize web.xml filter init param value

I have the below filter in web.xml: test org.test.MyFilter loginUrl https://loginAppName
Ani
  • 722
  • 9
  • 27
1
vote
1 answer

Grails ehcache and externalizing configuration

I am looking at externalizing certain configuration parameters for ehcache in our Grails application and I am running into something not working that the documentation claims ought to. Likely there is something I am missing. I am using the grails…
Dmitry Sharkov
  • 541
  • 7
  • 19
1
vote
5 answers

Externalizing parameters for VS2008 C++ project compilation

Is there some way to externalize the paths of libraries that are used in the compilation process on Visual Studio 2008? Like, *.properties files? My goal is to define "variables" referencing locations to headers files and libraries, like…
Lucas
  • 3,059
  • 5
  • 33
  • 48
1
vote
5 answers

how to store Usability related values (Font, Dimension, Color,...) in properties file using ResoucesBundles

I'm able to fetch the Strings using a properties file and ResourceBundle class using ResourceBundle.getString(). And even able to fetch int and float objects also using: int a = (int) ResourceBundle.getObject("IntKey"); float b = (float)…
merlachandra
  • 376
  • 2
  • 17
0
votes
1 answer

externalizing grails config into multiple properties files from environment variable

I have setup an environment variable like this: APP_HOME = "c:\app\app-datasource.properties in config.groovy I do def ENV_NAME = "APP_HOME" if(!grails.config.location || !(grails.config.location instanceof List)) { grails.config.location =…
pri_dev
  • 11,315
  • 15
  • 70
  • 122
0
votes
0 answers

'pdflatex -shell-escape -halt-on-error -interaction=batchmode -jobname "tikz/output-figure0" [...] did NOT result in a usable output file

Cannot include Tikz Externalize in existing large Overleaf project Hi community, Since I cannot compile my paper with out a timeout anymore due to the large amount of tikz plots (and data for these plots) I want to use tikz externalize. I followed…
Mav
  • 11
0
votes
2 answers

Flex: assigning events to dynamically created buttons

Thanks to wezzy and the others who helped me out the past couple of days. I've been taking their advice and trying to figure the rest out on my own but I'm stuck again. I have a txt file structured like…
RapsFan1981
  • 1,177
  • 3
  • 21
  • 61
0
votes
1 answer

Externalizing and Caching drools due to heavy memory consumption

When I was new to drools I went thru some forums and developed an application with drools configured using KnowledgeBuilder api's and StatefulKnowledgeSessions. At that time the drools files are less in number and packaged with application. When…
user2585494
  • 483
  • 2
  • 7
  • 18
1
2